Visual Studio Code#
Extensions#
To increase your productivity, the following extensions are recommended depending on what you’re doing:
Name |
Description |
Install |
---|---|---|
reStructuredText |
linter, preview, IntelliSense and more |
|
Code Spell Checker |
Spelling checker for source code |
|
GitLens |
Supercharge the Git capabilities built into Visual Studio Code |
|
Paste Image |
paste image from clipboard directly |
|
Task Explorer |
Manage tasks |
|
Visual Studio IntelliCode |
AI-assisted development |
Name |
Description |
Install |
---|---|---|
Python |
Linting, Debugging, Intellisense and more |
|
Python Docstring Generator |
Automatically generates detailed docstrings for python functions |
|
Python Indent |
Correct python indentation. |
Paste Image configuration#
If you’re writing RST documentation, add the following lines in the local project settings
(.vscode/settings.json
) for the Paste Image extension to automatically save clipped
image in the img folder of the current directory. Use Ctrl+Alt+V to paste the image.
{
"pasteImage.path": "${currentFileDir}/img",
"pasteImage.insertPattern": ".. figure:: ${imageSyntaxPrefix}${imageFilePath}${imageSyntaxSuffix}"
}
Integrate Cmder terminal#
Create CMDER_ROOT
environment variable pointing to the Cmder installation directory.
Create the file %CMDER_ROOT%\vendor\bin\vscode_init.cmd
with the content from https://gitlab.hevs.ch/snippets/3
Create the file %CMDER_ROOT%\vendor\bin\vscode_init_args.cmd.default.cmd
with the content https://gitlab.hevs.ch/snippets/4
Finally add the following in VSCode settings:
{
"terminal.integrated.shell.windows": "cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/k",
"%CMDER_ROOT%\\vendor\\bin\\vscode_init.cmd"
],
}
(Source)