VS Code - Add a new file under the selected working directory

后端 未结 4 531
猫巷女王i
猫巷女王i 2021-01-29 21:38

I\'m trying to get a shortcut to add a new file under my current working folder. So I navigate to the explorer using cmd+shift+e and when I get to the folder I want

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-29 21:57

    You can use this method if you don't want to create a shortcut.

    1. Navigate to the explorer via cmd+shift+e
    2. Get to the folder you want to create a new file/folder in.
    3. Open the file picker via cmd+shift+p
    4. Then type New File or New Folder and enter.

    That is how you create a new file/folder without touching the mouse. :)

提交回复
热议问题