VS Code: change the default path of integrated terminal to current file's directory

Yao Yao on August 23, 2021

Go to Preference -> Settings -> terminal.integrated.cwd, fill in ${fileDirname}. Now every time you open a new terminal in VS Code, it will start at the directory of your current file.

blog comments powered by Disqus