Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
babakfp opened this issue Mar 29, 2025 · 5 comments
Assignees
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label

Comments

@babakfp
Copy link

babakfp commented Mar 29, 2025

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.

@rzhao271
Copy link
Contributor

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 rzhao271 added info-needed Issue requires more information from poster and removed triage-needed labels Mar 31, 2025
@babakfp
Copy link
Author

babakfp commented Mar 31, 2025

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.

2025-03-31.22-05-52.mp4

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

@rzhao271 rzhao271 changed the title Add a feature to set the the default path to files.dialog.defaultPath when opening a new instance of vsCode Add a feature to set the terminal cwd to files.dialog.defaultPath when opening a new instance of VS Code Mar 31, 2025
@vs-code-engineering vs-code-engineering bot removed the info-needed Issue requires more information from poster label Mar 31, 2025
@rzhao271
Copy link
Contributor

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

@babakfp
Copy link
Author

babakfp commented Mar 31, 2025

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.

@rzhao271 rzhao271 assigned Tyriar and meganrogge and unassigned rzhao271 Mar 31, 2025
@meganrogge meganrogge added feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label labels Apr 1, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Apr 1, 2025
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

4 participants