From 3fc4370c5ad95c820283b9cfa77bbd16afd23b0d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 23 Feb 2025 22:49:14 +0000 Subject: [PATCH] feat(cursor): add my emacs-style indent/outdent keybindings --- keybindings.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/keybindings.json b/keybindings.json index b1a63ce..2d59bb6 100644 --- a/keybindings.json +++ b/keybindings.json @@ -291,6 +291,16 @@ "command": "editor.action.rename", "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly" }, + { // Indent line + "key": "ctrl+c ]", + "command": "editor.action.indentLines", + "when": "editorTextFocus && !editorReadonly" + }, + { // Outdent line + "key": "ctrl+c [", + "command": "editor.action.outdentLines", + "when": "editorTextFocus && !editorReadonly" + }, { // Move lines up in editor. "key": "alt+p", "command": "editor.action.moveLinesUpAction",