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
Default save / open location #115730
Comments
It would be helpful if it was also possible if this applies to opening folders too. When using the File -> Open in VSCode on Mac the default folder to display is the home folder. It would be convenient if there was a configuration open to change the default folder. I keep all my code in a sub-directory of home, and it would be convenient if VSCode could be configured to default to that subdirectory. This problem has been discussed prior in a few places, so it seems others are also interested in this capability: |
Similar issue everyone here might also want to upvote/support: #140358 |
Yes this would be very helpful! |
Would be super helpful and an extremely simple feature to implement. |
Please consider upvoting #140358 otherwise it will be closed |
This. Drives me mad! |
#140358 has been fixed at least 😄 |
I find this more useful. Hopefully it can be fixed in a near future. |
This would be extremely time saving! |
Please 🥺 |
Please don't ignore this feature request :) It's useful. |
I think so, open folder in default location saving time. |
Yes, please implement this as it's a basic quality-of-life feature. Moreover, with the last update "Open Folder..." suddenly defaults to "Recent" on my Ubuntu installation and so it's even worse than the /home folder default it was before. Either don't touch defaults or, way better, make them user adjustable (as they should be). |
Just going to up @torext here: Last update on Ubuntu defaults Open Folder to Recent, which is a maddening headache for anyone trying to type their way into the appropriate folder (even if it is in the Recent items list). At the very least, keep it in |
Open Folder Recent is a disaster as Recent appears to be simply an arbitrary list of files that may have been edited at some time in the past. Even worse, the list is behind the editor, which must be moved to select the Default directory. |
@gleacher you mean the Open Folder window pops up in the background instead of above the editor window? God, I thought that was just me. It's incredibly annoying, and also started happening same time as it defaulted to Recent |
I only would like this behavior when opening a new empty window, not when I'm in a workspace or project. Example
Also, consider support for these variable substitutions: |
Can't tell if there's been an update since the last comments on this, but The file dialog window is still sometimes popping up in the background though. |
Temporary hack for MacOS users... Follow the instructions to set up an Automator Service (now called Quick Action) here https://apple.stackexchange.com/questions/51481/quickly-open-your-favorite-folders-on-os-x#:~:text=In%20the%20sidebar%2C%20under%20'Library,you%20want%20a%20shortcut%20for. BUT, for step 2, set the "in" variable to VSCode. And for step 5, make sure to also set the "Open with..." variable to VSCode. Then follow the rest of the instructions for mapping this custom Service to a keyboard shortcut. Now you can use this shortcut within VSCode to open a new window at your favorite directory each time, and from there when you open a file/folder, the "Open" dialogue will open in that directory. |
👍 |
2 similar comments
+1 |
+1 |
+1, even having to edit it with |
+1 would be great. |
I have submitted PR #182908 to address this. |
Pinging @bpasero because of his comment at #174228 (comment) in relation to a previous PR that was withdrawn by its author. |
I am not entirely sure changing the fallback (which is currently user-home) to a custom folder solves the issue as reported. We may not use this fallback at all unless maybe you open an empty workspace and have no file opened? |
I think the majority of interest here is in the fallback case. For example, #115730 (comment) and following. Still, I think it would be possible to enhance my PR so that the setting gets scoped as |
My 2p: When i open VS it remembers where I was, this is good. When I do File->open it starts in the location of the folder/project thats open. Thats great. When I do close folder, or otherwise open VS and there is nothing already open, I dont want it to start in |
* Implement `workbench.fileDialog.homePath` setting (fix #115730) * Make it work with TestResolver remote * Rename setting to `files.dialog.homePath` * Add `preferredHome` to `IFileDialogService` so SimpleFileDialog can use it * Improve setting description following feedback from @alexr00 * Ignore home override when doing ~ replacement * Stop preferredHome falling back to user-local setting when working remote * Eliminate preferredHome hack
Thanks to #182908, a new setting |
Finally! 🚀 |
Setting renamed to |
…rosoft#182908) * Implement `workbench.fileDialog.homePath` setting (fix microsoft#115730) * Make it work with TestResolver remote * Rename setting to `files.dialog.homePath` * Add `preferredHome` to `IFileDialogService` so SimpleFileDialog can use it * Improve setting description following feedback from @alexr00 * Ignore home override when doing ~ replacement * Stop preferredHome falling back to user-local setting when working remote * Eliminate preferredHome hack
@bpasero @gjsjohnmurray Is there a way to set a home relative path in |
No, we do not support variables or path expansion in settings. though we have feature requests pending for that. |
Would it be possible to change the default opening and saving location when trying to open and/or save a file.
For example, instead of it automatically being the root folder I would prefer the desktop.
Thanks!
The text was updated successfully, but these errors were encountered: