Skip to content

Instantly share code, notes, and snippets.

@taikedz
Last active June 23, 2023 08:32
Show Gist options
  • Save taikedz/ff8c26d53dec220653c3e967b1d310ab to your computer and use it in GitHub Desktop.
Save taikedz/ff8c26d53dec220653c3e967b1d310ab to your computer and use it in GitHub Desktop.
Visual Stodio Code (VS Code) settings

VS Code Settings Adjustments

Plugins to install

  • pylance
  • git lens

Switch between the terminal and editor

Open the preferences via Ctrl Shift P

Choose to use Preferences: Open Keyboard Shortcuts (JSON)

Add the following:

// Place your key bindings in this file to override the defaults
[
    {
        "key": "ctrl+'",
        "command": "workbench.action.terminal.focus",
        "when": "!terminalFocus"
    },
    {
        "key": "ctrl+'",
        "command": "workbench.action.focusActiveEditorGroup",
        "when": "terminalFocus"
    }
]

User settings

Sometimes some settings don't seem to be active. Look for the extension's help and see the appropriate JSON settting.

These are my preferences.

Open the "user settings (JSON)" file and add the setting

For example

{
    "python.analysis.autoImportCompletions": true,
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "editor.autoClosingBrackets": "never",
    "editor.autoClosingQuotes": "never",
    "editor.autoClosingDelete": "never",
    "editor.autoClosingOvertype": "never",
    "editor.autoSurround": "never",

    // Undo the mudder ducker's damage
    // Can be omitted if this merges: https://github.com/microsoft/vscode/pull/184938
    "editor.tokenColorCustomizations": {
        "[*]": {
            "textMateRules": [
                {
                    "name": "Docstrings",
                    "scope": "string.quoted.docstring",
                    "settings": {
                        "foreground": "#CE9178"
                    }
                }
            ]
        }
    }
    // May his editor forever fight his intentions with minor inconveniences
    // https://github.com/microsoft/vscode/pull/182162
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment