Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Host or OS dependent settings in Visual Studio Code (VSCode)

In Visual Studio Code, is it possible to have different settings.json files dependent on the host or OS you are on, preferably in a layer above the user settings?

like image 697
Hordak Avatar asked Sep 13 '16 05:09

Hordak


People also ask

What is the default setting for VS Code?

The easiest way to reset VS Code back to the default settings is to clear your user settings.json file. You can open the settings.json file with the Preferences: Open Settings (JSON) command in the Command Palette (Ctrl+Shift+P).

Where VS Code settings are stored?

The workspace settings file is located under the . vscode folder in your project.

How do I change my user settings in VS Code?

Press ⌘⇧P (Mac) or Ctrl+Shift+P (Windows), & then, in the Command Palette that appears, type in open settings json & press Enter/Return. A new tab will open in VSCode labeled User Settings, with Default Settings on the left & User Settings on the right.

What are sync settings in VS Code?

Settings Sync lets you share your Visual Studio Code configurations such as settings, keybindings, and installed extensions across your machines so you are always working with your favorite setup.


1 Answers

The general case of adding OS and/or platform dependent settings is now tracked in VS Code issue #5595. It appears as it is something they are interested in implementing but still working on.

like image 189
Alan Krause Avatar answered Sep 23 '22 04:09

Alan Krause