Default Terminal Start Directory does not use the same path as the project
已回答
I experienced issues having spaces in my path “D:\OneDrive - [account]\dev\.” So, I created a junction to this directory using mklink on Windows 11. I put the junction path, “D:\dev\," as the default starting directory for new projects. This works great for new projects. However, when my projects start, the terminal's default starting directory is still “D:\OneDrive - [account]\dev\[project name]” and not “D:\dev\[project name].” It is easy enough to change this in the settings on a project-by-project basis. However, how can I change it so that the terminal will by default start in “D:\dev\[project name]” to match my project path?
Thanks!
请先登录再写评论。
I imagine you're facing issues due to the following bug on Windows: https://youtrack.jetbrains.com/issue/PY-71633/Project-paths-with-spaces-break-virtualenv-activation-on-Windows-in-Terminal
By default, the built-in terminal opens in a project root directory. The terminal starting directory can be stored in
.idea/workspace.xml
file for the project