Skip to content

Instantly share code, notes, and snippets.

@fatihbaltaci
Last active October 9, 2021 11:34
Show Gist options
  • Save fatihbaltaci/8b04f8234bdf510e42e1dfff0408bcb0 to your computer and use it in GitHub Desktop.
Save fatihbaltaci/8b04f8234bdf510e42e1dfff0408bcb0 to your computer and use it in GitHub Desktop.
vscode Visual Studio Code Settings
  • For MAC:

After installation, launch VS Code. Now open the Command Palette (F1 or ⇧+⌘+P on Mac) and type shell command to find the Shell Command: Install 'code' command in PATH command.

  • F1 -> Open Settings (JSON)
{
    "python.linting.pylintArgs": ["--extension-pkg-whitelist=cv2"]
}
  • F1 -> Open Keyboard Shortcuts (JSON)
// Place your key bindings in this file to override the defaultsauto[]
[
    {
        "key": "ctrl+shift+-",
        "command": "-workbench.action.navigateForward"
    },
    {
        "key": "shift+alt+left",
        "command": "workbench.action.navigateBack"
    },
    {
        "key": "shift+alt+right",
        "command": "workbench.action.navigateForward"
    },
    {
        "key": "ctrl+d",
        "command": "editor.action.copyLinesDownAction",
        "when": "editorTextFocus && !editorReadonly",
        "intellij": "Duplicate current line or selected block"
    },
    {
        "key": "ctrl+y",
        "command": "editor.action.deleteLines",
        "when": "editorTextFocus && !editorReadonly",
        "intellij": "Delete line at caret"
    },
    {
        "key": "ctrl+q",
        "command": "editor.action.showHover",
        "when": "editorTextFocus",
        "intellij": "Quick documentation lookup"
    },
    {
        "key": "alt+enter",
        "command": "editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly",
        "intellij": "Show intention actions and quick-fixes"
    },
    {
        "key": "ctrl+alt+l",
        "command": "editor.action.formatDocument",
        "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly",
        "intellij": "Reformat code"
    },
    {
        "key": "ctrl+alt+l",
        "command": "editor.action.formatSelection",
        "when": "editorHasDocumentFormattingProvider && editorHasSelection && editorTextFocus && !editorReadonly",
        "intellij": "Reformat selected code"
    },
    {
        "key": "ctrl+space",
        "command": "editor.action.triggerSuggest",
        "when": "editorHasCompletionItemProvider && editorTextFocus && !editorReadonly",
        "intellij": "Basic code completion (the name of any class, method or variable)"
    },
    {
        "key": "ctrl+shift+numpad_divide",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly",
        "intellij": "Comment/uncomment with line comment"
    },
    {
        "key": "ctrl+shift+/",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly",
        "intellij": "Comment/uncomment with line comment"
    },
    {
        "key": "ctrl+k",
        "command": "git.commit",
        "intellij": "Commit project to VCS"
    },
    {
        "key": "ctrl+t",
        "command": "git.pull",
        "intellij": "Pull project from VCS"
    },
    {
        "key": "shift+alt+k",
        "command": "git.push",
        "intellij": "Push project to VCS"
    },
    {
        "key": "ctrl+b",
        "command": "editor.action.goToDeclaration",
        "when": "editorHasDefinitionProvider && editorTextFocus",
        "intellij": "Go to declaration"
    },
    {
        "key": "f8",
        "command": "workbench.action.debug.stepOver",
        "when": "debugState == 'stopped'",
        "intellij": "debug.stepOver"
    },
    {
        "key": "ctrl+shift+t",
        "command": "workbench.action.tasks.runTask",
    }
]
xabikos.javascriptsnippets
pkief.material-icon-theme
ms-vscode-remote.remote-containers
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode-remote.remote-wsl
ms-azuretools.vscode-docker
ms-toolsai.jupyter
ms-python.vscode-pylance
ms-python.python
eamodio.gitlens
ms-kubernetes-tools.vscode-kubernetes-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment