Customize Shortcuts ​
You can customize the keyboard shortcuts for the commands of this extension to streamline your workflow. Follow these steps to set your preferred shortcuts:
Open the Keyboard Shortcuts editor:
- Press
Ctrl+K Ctrl+S
(Windows/Linux) orCmd+K Cmd+S
(Mac) - Alternatively, go to
Code > Settings > Keyboard Shortcuts
- Press
In the Keyboard Shortcuts editor, search for the command you want to customize:
Aide: Copy As AI Prompt
Aide: Ask AI
Aide: Code Convert
Aide: Code Viewer Helper
Aide: Rename Variable
Aide: Smart Paste
- ...and possibly more
Click the plus icon next to the command you want to assign a shortcut to.
Press the desired key combination for your new shortcut.
If there is a conflict with an existing shortcut, VSCode will notify you. You can choose to overwrite the existing shortcut or try another combination.
Here are the default commands you can customize:
aide.copyAsPrompt
: Copy as AI Promptaide.askAI
: Ask AIaide.codeConvert
: Code Convertaide.codeViewerHelper
: Code Viewer Helperaide.renameVariable
: Rename Variableaide.smartPaste
: Smart Paste- ...and possibly more, you can find the corresponding commands in each feature documentation.
Example:
To set Ctrl+Shift+A
(Windows/Linux) or Cmd+Shift+A
(Mac) for the Ask AI
command:
- Search for
Aide: Ask AI
in the Keyboard Shortcuts editor - Click the plus icon next to the
aide.askAI
command - Press
Ctrl+Shift+A
orCmd+Shift+A
- The new shortcut will be saved automatically
Repeat this process for any other commands you wish to customize.
Note: If you prefer to edit the keybindings.json
file directly, you can add the following entry:
{
"key": "ctrl+shift+a",
"command": "aide.askAI",
"when": "editorTextFocus"
}
Replace "ctrl+shift+a"
with your desired key combination and "aide.askAI"
with the command you want to assign.
By customizing these shortcuts, you can quickly access the features of the extension and boost your productivity in VSCode.