visual-studio-codeterminalshortcut

How to create a file in the terminal of VSC?


I know how to create a folder in the terminal of vsc mkdir NameOfFolder, but how to create a file in the terminal?


Solution

  • Ctrl + ` to open the terminal in Visual Studio Code.

    echo > "File.txt" to create a new .txt file in the current directory.