VS Code Settings logo

VS Code Settings

Free

General VS Code configuration guide

FreeFree tier
Type
Open Source
Company
Microsoft

About VS Code Settings

You can configure Visual Studio Code to your liking through its various settings. Nearly every part of VS Code's editor, user interface, and functional behavior has options you can modify. VS Code provides different scopes for settings: User settings (apply globally to any instance) and Workspace settings (stored inside the workspace and only apply when that workspace is opened). Settings are stored in a settings JSON file and can be managed either by editing the JSON file directly or through the Settings editor, which provides a graphical interface. The Settings editor allows you to search and discover settings, and changes are applied in real-time. Modified settings are highlighted with a colored bar.

Key Features

User settings apply globally to all instances of VS Code
Workspace settings are project-specific and override user settings
Settings stored in a settings.json file
Graphical Settings editor for easy configuration and search
Search and filter settings to quickly find options
Changes applied in real-time as you modify settings
Modified settings identified by a colored bar in the editor
Workspace settings stored in a .vscode folder for version control sharing

Pros & Cons

Pros
  • Allows fine-grained customization of nearly every aspect of VS Code
  • User and workspace scopes provide flexibility for different environments
  • Graphical Settings editor makes it easy to find and change settings without editing JSON
  • Settings are applied in real-time, providing immediate feedback
  • Workspace settings can be shared and version-controlled with the project
Cons
  • Not all user settings are available as workspace settings (e.g., update and security settings)
  • Settings JSON file can become large and complex with extensive customizations
  • Requires some familiarity with VS Code's setting schema for advanced modifications

Best For

Customizing editor appearance and behavior globallySetting project-specific configurations that override global defaultsExcluding files (e.g., node_modules) from the File Explorer per workspaceSharing settings across a team with version-controlled .vscode/settings.jsonQuickly finding and modifying specific settings using the Settings editor search

FAQ

What is the difference between user and workspace settings?
User settings apply globally to all instances of VS Code you open. Workspace settings are stored inside your workspace and only apply when that workspace is opened, overriding user settings for that project.
How do I open the Settings editor?
You can open the Settings editor by navigating to File > Preferences > Settings, using the keyboard shortcut ⌘, (Windows, Linux Ctrl+,), or from the Command Palette with Preferences: Open Settings.
Where are workspace settings stored?
Workspace settings are stored in a .vscode folder at the root of your project in a file named settings.json. This makes it easy to share settings with others via version control.
Can all user settings be overridden by workspace settings?
No, not all user settings are available as workspace settings. For example, application-wide settings related to updates and security cannot be overridden by workspace settings.