Changing the default path of Visual Studio Code's integrated terminal

后端 未结 6 469
不知归路
不知归路 2020-12-24 13:07

I\'m trying to change the default path of the integrated terminal in Visual Studio Code, but I\'m not sure how to. I do know how to change it in the windows command prompt,

6条回答
  •  生来不讨喜
    2020-12-24 14:00

    Thanks for the original answer from Peter. Definitely helped ! It has now slightly changed in more recent versions of VS Code.

    1. Navigate to File -> Preferences -> Settings
    2. Type cwd in search
    3. Choose Terminal > Integrated: Cwd settings
    4. Type the default path you want to set in the text block below (simply, no need for double hashes to escape)
    5. No need for saving, It's automatic
    6. Restart VS Code

    terminal cwd screen

提交回复
热议问题