How to edit settings.json in Visual Studio Code?

I got stuck yesterday when I was trying to change the settings.json in Visual Studio Code becuase of not understanding there are different ways for different situations.

As I figured out, there are three ways to edit settings.json

  1. in User Preferences (Global)
  2. in Folder
  3. in Workspace

in User Preferences (Global)

You can change the settings.json from your user preferences. This changes are global. Therefore it will affect all of your projects. Here are 2 ways to reach that global settings.json file.

You can add the settings to this file (may be given by a extension) and make all of these settings global.

in Folder

If you have opened a folder (File -> Open Folder), here's the way to add settings.json in the folder. This will affect only the current folder

in Workspace

If you have opened a workspace (File -> Open Workspace to open or saved using File -> Save Workspace As...), here are the steps to change settings of the workspace. Note that in this way, you don't have a settings.json. But, you can do everything done by it in another way.

When you add settings into yourwokspace.code-workspace file, the settings will only be available for the current workspace.

Thank you for reading!

Tagged: Visual Studio Code
If you are interested in writing for Hyvor Developer, please let us know via email: [email protected]
Latest on Hyvor Developer
Image for Creating a Real-Time Chat App with PHP and Node.js
Creating a Real-Time Chat App with PHP and Node.js
Image for All About MYSQLI Prepared Statements in PHP
All About MYSQLI Prepared Statements in PHP
Image for Image Upload with AJAX, PHP, and MYSQL - The Beginner's Guide
Image Upload with AJAX, PHP, and MYSQL - The Beginner's Guide
Image for PHP Contact Form - The Email Method
PHP Contact Form - The Email Method
38