vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Add a feature to set the terminal cwd to `files.dialog.defaultPath` when opening a new instance of VS Code

Open babakfp opened this issue 9 months ago • 6 comments

Hi 👋

When opening a new instance of vsCode, the default path is the home directory. I store almost all code related stuff in a specific folder. It would be super helpful to default to this path when opening a new instance. Every time I open vsCode, or a new instance, I need to navigate to the code folder. Having files.dialog.defaultPath set to this code folder is useful, but having this new feature alongside this, could be even more helpful.

Thanks.

babakfp avatar Mar 29 '25 12:03 babakfp

Could you clarify what functionality you would like to see beyond what you currently have by setting files.dialog.defaultPath in your user settings? I noticed that files.dialog.defaultPath has to be set to a valid directory, otherwise the default path goes back to being the home directory.

rzhao271 avatar Mar 31 '25 16:03 rzhao271

Could you clarify what functionality you would like to see beyond what you currently have by setting files.dialog.defaultPath in your user settings? I noticed that files.dialog.defaultPath has to be set to a valid directory, otherwise the default path goes back to being the home directory.

https://github.com/user-attachments/assets/2dc01701-0b73-4643-97f6-0ad6fde2dae9

NOTE: the video has audio, but it's muted by default.

babakfp avatar Mar 31 '25 18:03 babakfp

Does setting the terminal.integrated.cwd setting to the same value as your files.dialog.defaultPath setting help?

rzhao271 avatar Mar 31 '25 20:03 rzhao271

Does setting the terminal.integrated.cwd setting to the same value as your files.dialog.defaultPath setting help?

No. I need the path to open as a workspace.


I want the terminal to open the path of the workspace. Setting terminal.integrated.cwd breaks that.

babakfp avatar Mar 31 '25 21:03 babakfp

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!