-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Allow storing settings outside of working directory #56148
Comments
Why don't you check in the |
Editor specific files don’t belong in version control. A code base should be editor agnostic. Some settings might be related to just one project, such as debugging configurations. |
You seem to be in a pickle then, don't know anyone else struggling with this issue. I suggest putting the settings somewhere in your code and make a bash alias/script which simply symlinks it to |
I have seen plenty of pull requests of people adding unwanted editor related files. Sometimes these get accepted, cluttering the code base, other times they get rejected. This is not just a VSCode issue, but by storing editor settings in the project root, VSCode has become part of the problem. For example, I think the majority of the VSCode team wouldn’t be fond of a pull request which adds for example Despite the fact that I use and like VSCode, |
@bpasero Do we have a dupe of this? |
@sandy081 might know. The best is to create a workspace file and store settings in there. |
@bpasero Creating a workspace file is a workaround, but that does mean one would need to run A solution could be to resolve a matching workspace file when @sandy081 This is not a duplicate of #40233. That issue is about committing partial VSCode configuration. This issue is about moving project configuration outside of the git tracked files. Actually, the solution from the other issue still suffers from the problem described in this issue. |
@remcohaszing Please read #40233 once again. I believe this is exactly what you are looking for. |
@remcohaszing Using workspace is a workaround to avoid sharable workspace settings. But #40233 is meant to support non sharable workspace settings. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines. Happy Coding! |
I use git for version control. I regularly type
git clean -xdf
from muscle memory, so I can work in a pristine environment, for example when switching branches.Often I totally forget about my .vscode directory, so I will need to restore them manually. Of course it is possible to use workspaces instead, but it’s so convenient to just use
code .
from the terminal. It would be a shame to give this up.My idea is to offer a different location for these configurations, which will be loaded when a directory is loaded, like .vscode, but outside of the version control.
Some potential locations:
The text was updated successfully, but these errors were encountered: