Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to hundreds of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Settings and Workspaces in VS Code

Take a quick look at how to configure VS Code and how to work with workspaces. You’ll learn:

  • How to change editor and workspace settings
  • What workspaces are and how to create them
  • The difference between user settings and workspace settings
  • How to create workspace specific settings

Comments & Discussion

csharma19 on Aug. 2, 2019

Hi Austin - thanks for creating this video. Newbie here and experiment. I noticed that there is a .vsCode folder under my workspace, and a settings.json file there. To differentiate from the “global json file (this other json file points to the C Drive) I renamed it to “GeneralSettings.json”. When I changed the editor font size in this file, I don’t see any impacts on the editor. However, I do see it changes in font size when I edit in the the “global settings” json file. Any suggestions on what I’m doing wrong? Thanks ,Chet

csharma19 on Aug. 2, 2019

Hmm…I think I found the answer. The settings file was under .vsCode. Turns out I can’t change the name of this file (I changed the name to GeneralSettings.json)…and that’s what messed it up. When I changed the name back to the general “settings.json” and changed the font, it worked fine. I guess we have to keep the same name for all the settings.json files and just be careful to check the paths to see if it’s a global or folder specific path. If you have any other comments about naming conventions for this file (to differentiate b/w global and folder or workspace specific) do let me know. Thanks!

Jon Fincher RP Team on Aug. 2, 2019

Hi csharma19:

The way to differentiate between the global (or user) and local settings.json files is their location.

The global settings file, called the user settings file, will live in a central location based on your user profile – on my Ubuntu system, that’s ~/.config/Code/User/settings.json. On your Windows system, it should be under %APPDATA%\Code\User\settings.json.

In contrast, the workspace settings file is always relative to the workspace folder. As you found, it is the folder ./.vscode/settings.json.

And as you also discovered, you cannot change the name.

You can always learn more in the VS Code documentation – this information can be found at https://code.visualstudio.com/docs/getstarted/settings.

–Jon

csharma19 on Aug. 2, 2019

Noted Jon - thanks!

Become a Member to join the conversation.