VS Code

Contents

Handy Tricks for VS Code

Useful extensions for everyday use.

autoDocstring

Beautify

Guides

Python

R

vscode-icons

Charcoal Oceanic Next

Jupyter Notebook Previewer

Code Runner

PlantUML

Liveshare

Open via Preferences -> Open Keyboard Shortcuts (JSON)

Keyboard binding to add #%% to the in focus script.

{
    "key": "ctrl+shift+a",
    "command": "type",
    "args": {"text": "#%%"},
    "when": "editorTextFocus"
}

Binding to send any selected text to the current terminal. Useful when coding in a language with poor interactive support (eg anything other than python)

{
    "key": "ctrl+shift+enter",
    "command": "workbench.action.terminal.runSelectedText"
}

To force vscode to open a new, clean workspace when opening (unless specifically opening from a directory) update:

  • Window: Restore Windows
    • “none”