Skip to content

Commit de3818e

Browse files
committed
feat(vscode): add new keybindings for inline diffs and chat editing
- Introduced keybindings for accepting all inline diffs and chat editing files. - Removed conflicting keybindings to ensure smooth functionality in the editor. - Enhanced user experience by streamlining commands related to editing and diff management.
1 parent 7bafe56 commit de3818e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

config/vscode/Application Support/keybindings.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,5 +348,25 @@
348348
"key": "cmd+enter",
349349
"command": "workbench.action.toggleMaximizedPanel",
350350
"when": "panelAlignment == 'center' || panelPosition != 'bottom' && panelPosition != 'top'"
351+
},
352+
{
353+
"key": "shift+cmd+y",
354+
"command": "editor.action.inlineDiffs.acceptAll",
355+
"when": "editorTextFocus && @inlineDiffs.acceptAllEdits.isActiveEditorWithDiffs"
356+
},
357+
{
358+
"key": "cmd+enter",
359+
"command": "-editor.action.inlineDiffs.acceptAll",
360+
"when": "editorTextFocus && @inlineDiffs.acceptAllEdits.isActiveEditorWithDiffs"
361+
},
362+
{
363+
"key": "shift+cmd+y",
364+
"command": "chatEditing.acceptAllFiles",
365+
"when": "hasUndecidedChatEditingResource && inChatInput && !chatSessionRequestInProgress"
366+
},
367+
{
368+
"key": "cmd+enter",
369+
"command": "-chatEditing.acceptAllFiles",
370+
"when": "hasUndecidedChatEditingResource && inChatInput && !chatSessionRequestInProgress"
351371
}
352372
]

0 commit comments

Comments
 (0)