How to edit settings.json in Visual Studio Code? | Mac vscode Settings JSON
IgotstuckyesterdaywhenIwastryingtochangethesettings.jsoninVisualStudioCodebecuaseofnotunderstandingtherearedifferentwaysfordifferentsituations.AsIfiguredout,therearethreewaystoeditsettings.jsoninUserPreferences(Global)[1]inFolder[2]inWorkspace[3]inUserPreferences(Global)Youcanchangethesettings.jsonfromyouruserpreferences.Thischangesareglobal.Thereforeitwillaffectallofyourprojects.Hereare2waystoreachthatglobalsettings.jsonfile.File->Preferences->Settings->Extensions->Scrolldownand...
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
in User Preferences (Global)[1]in Folder[2]in Workspace[3]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.
File -> Preferences -> Settings -> Extensions -> Scroll down and find "Edit in settings.json"Or in these paths in your OSWindows %APPDATA%CodeUsersettings.jsonmacOS $HOME/Library/Application Support/Code/User/settings.jsonLinux $HOME/.config/Code/User/settings.jsonYou can add the settings to this file (may be given by a extension) and make all of these settings global.
in FolderIf you have opened a folder (File -> Open Folder), heres the way ...