- 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",
}
]