Install
Settings
- Settings
- Edit
- Ctrl + Shift + P
- Opens the command palette
- Settings icon (cog) in the Activity bar
- UI vs JSON
- By default the settings are shown in the UI mode
- You can also choose to view in JSON
- View settings as JSON:
- Open the settings
- User > Workbench > Settings editor : JSON
- the next time you open the settings it will be displayed as JSON
- View settings with UI:
- If you want to view the settings with the UI…
- Open the settings (which now is settings.json)
- find the key value pair:
- “workbench.settings.editor”: “json”
- When the mouse if hoovering the line you will see an pin icon appear in the margin
- Here you can choose UI and the next time it will open up in UI mode
- Default Settings
- Open the command palette (Ctrl + Shift + P)
- start typing “default…” and when you see the Default Settings click on it
- in the defaultSettings.jsonc you can inspect which settings you can set
- use the search field to find what you are looking for
- .env
- You can use a .env file to set environment varaibles
- You can for instance set the python path
- Note if you want to set more than one path delimit with ;
- The defualt setting is set to look for the .env file in the workspace but you can override this in settings.json
- In the settings.json add the following key-value pair
- “python.envFile”: “C:/path/to/it/.env”