How To Create File VS Code In Terminal Linux?

Open VS Code

Open the integrated terminal

Go to the folder where you want the file

Run `touch filename.txt`

Run `code filename.txt` to open the file in VS Code

Run `nano filename.txt` if you want to create and edit it in terminal first

Run `mkdir foldername` to create a folder

Run `cd foldername` to enter the folder

Run `touch index.html` to create an HTML file

Run `touch app.js` to create a JavaScript file

Run `touch style.css` to create a CSS file

Suggested for You

Trending Today