Keyboard Shortcuts
Master MyDeskBot with keyboard shortcuts for maximum efficiency.
Global Shortcuts
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Open Chat Panel | Ctrl+Shift+M | Cmd+Shift+M | Open MyDeskBot chat panel |
| Open Settings | Ctrl+, | Cmd+, | Open settings |
| Toggle MyDeskBot | Ctrl+Shift+P → "Toggle" | Cmd+Shift+P → "Toggle" | Enable/disable MyDeskBot |
| Show Commands | Ctrl+Shift+P | Cmd+Shift+P | Show all MyDeskBot commands |
Code Completion
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Trigger Completion | Ctrl+Space | Ctrl+Space | Show inline completions |
| Accept Suggestion | Tab | Tab | Accept current suggestion |
| Accept Word | Ctrl+Right | Alt+Right | Accept next word |
| Accept Line | Ctrl+Down | Ctrl+Down | Accept current line |
| Dismiss | Esc | Esc | Dismiss suggestions |
| Next Suggestion | Alt+] | Alt+] | Next inline suggestion |
| Previous Suggestion | Alt+[ | Alt+[ | Previous inline suggestion |
Code Actions
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Explain Code | Ctrl+Shift+E | Cmd+Shift+E | Explain selected code |
| Refactor Code | Ctrl+Shift+R | Cmd+Shift+R | Refactor selected code |
| Find Bugs | Ctrl+Shift+B | Cmd+Shift+B | Find bugs in selection |
| Optimize | Ctrl+Shift+O | Cmd+Shift+O | Optimize selected code |
| Add Comments | Ctrl+Shift+D | Cmd+Shift+D | Generate documentation |
| Generate Tests | Ctrl+Shift+T | Cmd+Shift+T | Generate tests |
Chat
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Open Chat | Ctrl+Shift+M | Cmd+Shift+M | Open chat panel |
| Send Message | Enter | Enter | Send chat message |
| New Line | Shift+Enter | Shift+Enter | Insert new line without sending |
| Clear Chat | Ctrl+L | Cmd+L | Clear chat history |
| Focus Input | Ctrl+/ | Cmd+/ | Focus chat input |
| Copy Last Response | Ctrl+Shift+C | Cmd+Shift+C | Copy last AI response |
Plan Mode
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Open Plan Mode | Ctrl+Shift+P → "Plan" | Cmd+Shift+P → "Plan" | Open plan mode |
| Accept Plan | Enter | Enter | Accept current plan |
| Edit Step | E | E | Edit selected step |
| Delete Step | D | D | Delete selected step |
| Add Subtask | A | A | Add subtask to step |
| Show Next Step | N | N | Show/expand next step |
| Export Plan | Ctrl+E | Cmd+E | Export plan |
Editor-Specific Shortcuts
IntelliJ IDEA
| Action | Shortcut | Description |
|---|---|---|
| Open MyDeskBot Panel | Alt+M | Open side panel |
| Inline Chat | Ctrl+Shift+M | Start inline chat |
| Explain | Ctrl+Shift+E | Explain selected code |
| Refactor | Ctrl+Shift+R | Refactor selected code |
Visual Studio Code
| Action | Shortcut | Description |
|---|---|---|
| Open Chat Panel | Ctrl+Shift+P → "Open Chat" | Open side panel |
| Inline Chat | Ctrl+Shift+I | Start inline chat |
| Explain | Ctrl+Shift+E | Explain selected code |
| Refactor | Ctrl+Shift+R | Refactor selected code |
| Complete | Ctrl+Space | Trigger completion |
Neovim
| Action | Shortcut | Description |
|---|---|---|
| Open Chat Panel | <leader>mc | Open chat panel |
| Inline Chat | <leader>mi | Start inline chat |
| Explain Code | <leader>me | Explain selected code |
| Refactor Code | <leader>mr | Refactor selected code |
| Complete | <Tab> | Trigger completion |
| Toggle | <leader>mt | Toggle MyDeskBot |
Customizing Shortcuts
IntelliJ IDEA
- Go to Settings → Keymap
- Search for "MyDeskBot"
- Double-click a shortcut to change it
- Enter your preferred key combination
Visual Studio Code
In settings.json:
json
{
"mydeskbot.keybindings": {
"openChat": "Ctrl+Shift+M",
"inlineChat": "Ctrl+Shift+I",
"explainCode": "Ctrl+Shift+E",
"refactorCode": "Ctrl+Shift+R"
}
}Or use VS Code's Keyboard Shortcuts editor:
Ctrl+KCtrl+S- Search for "MyDeskBot"
- Click the pencil icon to customize
Neovim
In your Neovim config:
lua
require('mydeskbot').setup({
keymaps = {
open_chat = '<leader>mc',
inline_chat = '<leader>mi',
explain_code = '<leader>me',
refactor_code = '<leader>mr',
complete = '<Tab>',
toggle = '<leader>mt'
}
})Quick Action Shortcuts
Use these to quickly access common actions:
| Action | Shortcut |
|---|---|
| Generate Commit Message | Ctrl+Shift+P → "Generate Commit Message" |
| Review PR Changes | Ctrl+Shift+P → "Review PR" |
| Explain Error | Ctrl+Shift+P → "Explain Error" |
| Fix Error | Ctrl+Shift+P → "Fix Error" |
| Generate Documentation | Ctrl+Shift+P → "Generate Docs" |
Multi-cursor Shortcuts
MyDeskBot works with multi-cursor selections:
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Add Cursor | Ctrl+Alt+Up/Down | Cmd+Option+Up/Down | Add cursor above/below |
| Select All Occurrences | Ctrl+Shift+Alt+J | Cmd+Shift+Cmd+J | Select all occurrences |
| Explain All | Ctrl+Shift+E | Cmd+Shift+E | Explain all selections |
Navigation Shortcuts
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Go to Definition | F12 | F12 | Go to definition |
| Find References | Shift+F12 | Shift+F12 | Find references |
| Peek Definition | Alt+F12 | Alt+F12 | Peek definition |
| Quick Open | Ctrl+P | Cmd+P | Quick open file |
Tips for Efficiency
1. Learn Essential Shortcuts First
Start with these essential shortcuts:
Ctrl+Shift+M/Cmd+Shift+M- Open chatTab- Accept suggestionsCtrl+Shift+E/Cmd+Shift+E- Explain codeCtrl+Shift+R/Cmd+Shift+R- Refactor code
2. Customize for Your Workflow
Customize shortcuts to match your habits:
json
{
"mydeskbot.keybindings": {
// Match your existing shortcuts
"explainCode": "Ctrl+Shift+X", // If you use this for something else
"refactorCode": "Ctrl+Shift+F"
}
}3. Use Command Palette
Don't memorize all shortcuts. Use the command palette:
Ctrl+Shift+P (Windows/Linux)
Cmd+Shift+P (macOS)Then search for the action you want.
4. Create Macros
Create custom macros for common workflows:
lua
-- Neovim example
vim.api.nvim_set_keymap('n', '<leader>fr', '', {
callback = function()
-- Explain code
require('mydeskbot').explain_code()
-- Then refactor
require('mydeskbot').refactor_code()
end
})5. Learn Context Shortcuts
Different contexts have different shortcuts:
- In code editor: Code completion and actions
- In chat panel: Chat-specific shortcuts
- In plan mode: Plan-specific shortcuts
Conflict Resolution
If shortcuts conflict with other extensions:
IntelliJ IDEA
- Settings → Keymap
- Find conflicting shortcuts
- Right-click → "Remove" or "Add Mouse Shortcut"
- Reassign MyDeskBot shortcuts
Visual Studio Code
json
{
"mydeskbot.overrideKeybindings": false,
"mydeskbot.keybindings": {
"explainCode": "Ctrl+Shift+Alt+E" // Use modifier keys to avoid conflicts
}
}Neovim
lua
require('mydeskbot').setup({
keymaps = {
-- Use different leader combinations
explain_code = '<leader>ae', -- a for AI
refactor_code = '<leader>ar',
}
})Accessibility Shortcuts
MyDeskBot supports accessibility shortcuts:
| Action | Windows/Linux | macOS | Description |
|---|---|---|---|
| Read Aloud | Ctrl+Shift+R | Cmd+Shift+R | Read selected text |
| Increase Font Size | Ctrl++ | Cmd++ | Increase font size |
| Decrease Font Size | Ctrl+- | Cmd+- | Decrease font size |
| Reset Font Size | Ctrl+0 | Cmd+0 | Reset font size |
Cheat Sheet
Download and print the official keyboard shortcuts cheat sheet: