question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Local Workspace settings

See original GitHub issue

I would like to be able to configure settings that are specific to my user and to a particular workspace. So, ‘local’ workspace settings?

So there would be three locations for settings (for a single-folder workspace):

  • user settings
  • ${workspaceRoot}/.vscode/settings.json
  • ${workspaceRoot}/.vscode/settings.local.json

This way, I can add .vscode/settings.json to git, and share project settings such as “exclude node_modules” but I can gitignore .vscode/settings.local.json and add things specific to that project that I don’t want to share, such as git autofetch.

I originally thought to suggest .vscode/settings.user.json, similar to how VS Pro handles similar configuration, but that might be confusing.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:608
  • Comments:116 (21 by maintainers)

github_iconTop GitHub Comments

96reactions
firelizzard18commented, Dec 15, 2017

Using a multi-root workspace, even with only one open root/folder, adds a layer of unnecessary complexity. I’m looking for an additional config file that works with a single-root workspace, so I can have the main workspace config file checked in to source control and the additional workspace config file ignored.

43reactions
abiquecommented, Sep 30, 2020

My initial proposal was very simple: read settings.*.json in addition to settings.json, from ${workspaceRoot}/.vscode. I did not and do not expect VSCode to look in and subdirectories for settings files. This entirely circumvents the issue of scanning subdirectories.

My opinions about .gitignore changes have been expressed thoroughly by others, but I will point out that adding a single entry for /.vscode/settings.*.json is not at all onerous.

This proposal is simple and very good. Why isn’t it done already? It is taking years to do such a simple thing, this is plain bullshit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User and Workspace Settings - Visual Studio Code
This feature lets you share settings, keyboard shortcuts, and installed extensions across your VS Code installs on various machines. You can enable Settings...
Read more >
Decide between using a local or a server workspace
Use a local workspace; Use a server workspace; Manage project collection workspace settings for your team; Work from the command prompt.
Read more >
How to enable VS Code local workspace settings?
yes a "multi-root workspace" file with only one workspace. It allows settings separate of the folder settings in . · I specifically tried ......
Read more >
Customise VS Code for a project, or per language - Rob O'Leary
Workspace Settings : Apply to the current project only. They are stored in <<workspace>>/.vscode/settings.json . These settings can be useful ...
Read more >
User and Workspace Settings - vscode-docs
The menu under File , Preferences provides entries to configure user and workspace settings. You are provided with a list of default settings....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found