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+Pto open VSC command prompt -
Enter
>Preferences: Open Settings (UI)and clickEnterto open Settings tab -
For all following use setting search field:
-
Type
Files: Auto Saveand select optionafterDelay -
Type
Python: Language Serverand selectPylance -
Type
Files: Auto Save Delayand set value delay value to1000 -
Type
Python > Analysis: Diagnostic Modeand set value toworkspace -
Type
Python > Analysis: Extra Pathsand useAdd itemto add./source/ -
Type
Python > Formatting: Providerand set it toblack -
Type
Python > Linting: Flake8 Enabledand check it -
Type
Python > Linting: Pylint Enabledand uncheck it -
Type
Docstring Formatand selectnumpy -
Type
Python > Analysis: Type Checking Modeand set tobasic -
Type
Indent Rainbow: Colorsand check optionColor On Whitespace Only: -
Type
Indent Rainbow: Colorsand in sectionColorsuseEdit in settings.jsonto enter settings in json form, then use following to update"indentRainbow.colors"section:
-