Skip to content

Commit 557dd4d

Browse files
committed
change "use prompt" commadn shortcut to cmd+alt+/
1 parent e90011b commit 557dd4d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/chat/browser/promptSyntax/contributions/usePromptCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ import { IChatAttachPromptActionOptions, ATTACH_PROMPT_ACTION_ID } from '../../a
2020
/**
2121
* Command ID of the "Use Prompt" command.
2222
*/
23-
const COMMAND_ID = 'workbench.command.prompts.use';
23+
export const COMMAND_ID = 'workbench.command.prompts.use';
2424

2525
/**
2626
* Keybinding of the "Use Prompt" command.
27+
* The `cmd + /` is the current keybinding for 'attachment', so we use
28+
* the `alt` key modifier to convey the "prompt attachment" action.
2729
*/
28-
const COMMAND_KEY_BINDING = KeyMod.Alt | KeyMod.Shift | KeyCode.KeyE;
30+
const COMMAND_KEY_BINDING = KeyMod.CtrlCmd | KeyCode.Slash | KeyMod.Alt;
2931

3032
/**
3133
* Implementation of the "Use Prompt" command. The command works in the following way.

0 commit comments

Comments
 (0)