Skip to content

Instantly share code, notes, and snippets.

@dfch
Last active January 26, 2026 06:23
Show Gist options
  • Select an option

  • Save dfch/318df47902ae8ec1c0529d97a160fa8e to your computer and use it in GitHub Desktop.

Select an option

Save dfch/318df47902ae8ec1c0529d97a160fa8e to your computer and use it in GitHub Desktop.
VSCode settings
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+oem_6",
"command": "workbench.action.terminal.focus"
},
{
"key": "ctrl+oem_6",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+l",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+l",
"command": "editor.action.clipboardCutAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+e",
"command": "cursorEnd",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.moveLinesDownAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+a",
"command": "editor.action.selectAll",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+a",
"command": "-editor.action.selectAll"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
// https://stackoverflow.com/a/70599253/3881834
{
"key": "ctrl+alt+up", // whatever keybinding you want
"command": "cursorMove",
"args": {
"to": "up",
"by": "line",
"value": 5 // change this if you want
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down", // whatever keybinding you want
"command": "cursorMove",
"args": {
"to": "down",
"by": "line",
"value": 5 // change
},
"when": "editorTextFocus"
}
]
// Windows %APPDATA%\Code\User\
// Linux ~/.config/Code/user-data/User/
// Mac ~/Library/Application Support/Code/User/
{
"workbench.colorTheme": "Default Light Modern",
"files.autoSave": "afterDelay",
"git.confirmSync": false,
"cmake.showOptionsMovedNotification": false,
"editor.acceptSuggestionOnCommitCharacter": false,
"editor.inlineSuggest.enabled": false,
"editor.inlineSuggest.edits.experimental.enabled": false,
"explorer.confirmDelete": false,
"chat.commandCenter.enabled": false,
"workbench.startupEditor": "none",
"editor.detectIndentation": false,
"diffEditor.ignoreTrimWhitespace": false,
"chat.agent.enabled": false,
"chat.notifyWindowOnConfirmation": false,
"telemetry.feedback.enabled": false,
"C_Cpp.copilotHover": "disabled",
"remote.SSH.experimental.chat": false,
"python.analysis.aiCodeActions": {
"implementAbstractClasses": false
},
"python.analysis.extraPaths": [
"${workspaceFolder}/src"
],
"python.autoComplete.extraPaths": [
"${workspaceFolder}/src"
],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"flake8.args": [
"--max-line-length=80"
],
"telemetry.telemetryLevel": "off",
"workbench.enableExperiments": false,
// Command Runner extension.
"command-runner.terminal.name": "runCommand",
"command-runner.terminal.autoClear": true,
"command-runner.terminal.autoFocus": true,
"command-runner.terminal.cwd": "${fileDirname}",
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "right"
},
"git.suggestSmartCommit": false,
"sonarlint.connectedMode.connections.sonarcloud": [
{
"organizationKey": "dfensgmbh",
"connectionId": "dfensgmbh",
"disableNotifications": true,
"region": "EU"
}
],
"python.analysis.typeCheckingMode": "standard",
"sonarlint.rules": {
"python:S4144": {
"level": "on"
}
},
"sonarlint.automaticAnalysis": false,
"sonarlint.focusOnNewCode": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment