HowTo set up Visual Studio Code for development#
-
Make sure you have following extensions installed:
- Python
- Pylance
- YAML
- GitLens — Git supercharged
- indent-rainbow
- Test Explorer UI
- Test Explorer UI
-
Use
Ctrl+Shift+P
to open VSC command prompt -
Enter
>Preferences: Open Settings (UI)
and clickEnter
to open Settings tab -
For all following use setting search field:
-
Type
Files: Auto Save
and select optionafterDelay
-
Type
Python: Language Server
and selectPylance
-
Type
Files: Auto Save Delay
and set value delay value to1000
-
Type
Python > Analysis: Diagnostic Mode
and set value toworkspace
-
Type
Python > Analysis: Extra Paths
and useAdd item
to add./source/
-
Type
Python > Formatting: Provider
and set it toblack
-
Type
Python > Linting: Flake8 Enabled
and check it -
Type
Python > Linting: Pylint Enabled
and uncheck it -
Type
Docstring Format
and selectnumpy
-
Type
Python > Analysis: Type Checking Mode
and set tobasic
-
Type
Indent Rainbow: Colors
and check optionColor On Whitespace Only
: -
Type
Indent Rainbow: Colors
and in sectionColors
useEdit in settings.json
to enter settings in json form, then use following to update"indentRainbow.colors"
section:
-