Skip to content

Instantly share code, notes, and snippets.

@ArthurDelannoyazerty
Last active September 5, 2025 13:22
Show Gist options
  • Save ArthurDelannoyazerty/4b8b8644d498cf0c541b35da7e64273c to your computer and use it in GitHub Desktop.
Save ArthurDelannoyazerty/4b8b8644d498cf0c541b35da7e64273c to your computer and use it in GitHub Desktop.
My .vscode

.vscode/launch.json

Be sure to have installed the extension Commmand Variable to have access to advanced variables (like command:extension.commandvariable.file.relativeFileDotsNoExtension)

{
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Python Debugger: Current Module",
            "type": "debugpy",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "module": "${command:extension.commandvariable.file.relativeFileDotsNoExtension}",
            "console": "integratedTerminal",
            "justMyCode": false
        },
        {
            "name": "Python Debugger: Current File",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "justMyCode": false,
        }
    ]
}

.vscode/settings.json (Project Specific)

Use the Peacock extension and set a color. The color settings will be saved here. (ctrl+Maj+P -> Peacock: Change to a favorite color)

Settings (JSON) (Client Specific)

Global VSCode settings

{
    // -------------------------------------   CUSTOM USER SETTINGS   -------------------------------------
    
    // ----- PYTHON -----
    "python.terminal.activateEnvironment": false,   // My venv is enabled in my .bashrc, set it to true if you do not load your venv before
    
    // ----- FILES -----
    "files.autoSave": "afterDelay",                 // Auto save active
    "files.associations": {                         // Some file lint
        "*.include": "shellscript",
        "*.log": "log",
        "*.toml": "toml",
        "*.env.template": "env"
    },
    "files.exclude": {                              // Hide folders/files from the explorer
        ".venv/": true,
        "**/__init__.py": true,
        "**/__pycache__": true,
        "**/.git": false,
        "**/environment": true
    },
    
    // ----- FONTS -----
    "editor.fontFamily": "Iosevka Nerd Font Mono",                      // https://www.nerdfonts.com/font-downloads (Ioveska or JetBrains)
    "editor.fontLigatures": true,
    "terminal.integrated.fontFamily": "IosevkaTerm Nerd Font Mono",
    "terminal.integrated.fontLigatures.enabled": true,
    
    // ----- GIT -----
    "diffEditor.diffAlgorithm": "advanced",                             // https://x.com/notparbez/status/1951422361724436667
    "diffEditor.experimental.showMoves": true,
    
    // ----- GUI -----
    "workbench.sideBar.location": "right",
}

keybindings.json

Open the Keyboard Shortcut tab: "Ctrl+k Ctrl+s" Top right (at the tab level), button: "Open Keyboard Shortcuts (JSON)"

// Place your key bindings in this file to override the defaults
[
    {
        "key": "ctrl+down",
        "command": "workbench.action.terminal.focus"
    },
    {
        "key": "ctrl+down",
        "command": "-workbench.action.terminal.focus",
        "when": "accessibilityModeEnabled && accessibleViewOnLastLine && terminalHasBeenCreated && accessibleViewCurrentProviderId == 'terminal' || accessibilityModeEnabled && accessibleViewOnLastLine && terminalProcessSupported && accessibleViewCurrentProviderId == 'terminal'"
    },
    {
        "key": "ctrl+down",
        "command": "-inlineChat.focus",
        "when": "editorTextFocus && inlineChatVisible && !accessibilityModeEnabled && !inlineChatFocused && !isEmbeddedDiffEditor && inlineChatOuterCursorPosition == 'above'"
    },
    {
        "key": "ctrl+up",
        "command": "workbench.action.focusActiveEditorGroup"
    },
    {
        "key": "ctrl+enter",
        "command": "workbench.action.debug.run",
        "when": "debuggersAvailable && debugState != 'initializing'"
    },
    {
        "key": "ctrl+f5",
        "command": "-workbench.action.debug.run",
        "when": "debuggersAvailable && debugState != 'initializing'"
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment