diff --git a/home/apps/vscode/keybindings.json b/home/apps/vscode/keybindings.json index f319709..8ed2468 100644 --- a/home/apps/vscode/keybindings.json +++ b/home/apps/vscode/keybindings.json @@ -6,11 +6,23 @@ }, { "key": "alt+,", - "command": "workbench.action.previousEditor" + "command": "workbench.action.previousEditor", + "when": "editorFocus" }, { "key": "alt+.", - "command": "workbench.action.nextEditor" + "command": "workbench.action.nextEditor", + "when": "editorFocus" + }, + { + "key": "alt+,", + "command": "workbench.action.terminal.focusPrevious", + "when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus" + }, + { + "key": "alt+.", + "command": "workbench.action.terminal.focusNext", + "when": "terminalFocus && terminalHasBeenCreated && !terminalEditorFocus || terminalFocus && terminalProcessSupported && !terminalEditorFocus" }, { "key": "shift+cmd+]", diff --git a/home/apps/vscode/settings.json b/home/apps/vscode/settings.json index 3ecaa64..b56a3b3 100644 --- a/home/apps/vscode/settings.json +++ b/home/apps/vscode/settings.json @@ -11,6 +11,7 @@ "debug.onTaskErrors": "debugAnyway", "diffEditor.ignoreTrimWhitespace": false, "diffEditor.hideUnchangedRegions.enabled": true, + "editor.accessibilitySupport": "off", "editor.cursorSmoothCaretAnimation": "on", "editor.smoothScrolling": true, "terminal.integrated.smoothScrolling": true, @@ -61,6 +62,11 @@ // natural language "ltex.language": "en-US", + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + + "svg.preview.mode": "svg", // language-specific settings "d.alwaysShowDubStatusButtons": true, @@ -70,6 +76,7 @@ "ui.semanticTokens": true }, "[javascript]": { + "editor.snippetSuggestions": "top", "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[json]": { @@ -100,7 +107,9 @@ "editor.rulers": [120], "editor.semanticHighlighting.enabled": true }, + "rust-analyzer.check.command": "clippy", "[typescript]": { + "editor.snippetSuggestions": "top", "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[typescriptreact]": {