From a7e1266a9c4f6421d783b2a8db6291b841ef7587 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Sat, 20 Apr 2024 12:54:54 -0400 Subject: [PATCH] added vscode setting and keybinds --- users/richie/home/vscode/keybindings.json | 9 +++++++++ users/richie/home/vscode/settings.json | 8 +++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/users/richie/home/vscode/keybindings.json b/users/richie/home/vscode/keybindings.json index 0d4f101..0db25f1 100644 --- a/users/richie/home/vscode/keybindings.json +++ b/users/richie/home/vscode/keybindings.json @@ -1,2 +1,11 @@ [ + { + "key": "shift+alt+f", + "command": "editor.action.formatDocument", + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" + }, + { + "key": "alt+a d", + "command": "cSpell.addWordToWorkspaceSettings" + } ] diff --git a/users/richie/home/vscode/settings.json b/users/richie/home/vscode/settings.json index 29dc37e..f28ea48 100644 --- a/users/richie/home/vscode/settings.json +++ b/users/richie/home/vscode/settings.json @@ -27,5 +27,11 @@ "redhat.telemetry.enabled": true, // force the use of rust-analyzer from dev shell "rust-analyzer.server.path": "rust-analyzer", - "cSpell.userWords": ["syncthing"] + "cSpell.userWords": ["Cahill", "syncthing"], + "gitlens.plusFeatures.enabled": false, + "cSpell.enableFiletypes": ["nix"], + "cSpell.enabled": true, + "[yaml]": { + "editor.defaultFormatter": "redhat.vscode-yaml" + } }