I tried using code command but it doesn't create the file inside the folder I am in
Asked
Active
Viewed 511 times
2 Answers
0
It looks like you didn't save the file. After you save it, it will be written in disk. If you want to create an empty file and then open in VSCode you could run also:
touch index.css
code index.css

AndreDurao
- 5,600
- 7
- 41
- 61
-
related: [Why don't other programs see the changes I made to a file in VS Code until I save those changes?](/q/76984829/11107541) – starball Aug 26 '23 at 22:24
0
Use tha nano command, it is one of the most useful commands for saving and editing a file inside terminal. If it does not save on the folder your have opened, then maybe you are at another directory in the terminal. You can see the directory on the very left of the line where you type in the terminal. In zsh, it is on the left of the '%' sign.

Jason
- 87
- 8