Skip to content

Keyboard Shortcuts

Master MyDeskBot with keyboard shortcuts for maximum efficiency.

Global Shortcuts

ActionWindows/LinuxmacOSDescription
Open Chat PanelCtrl+Shift+MCmd+Shift+MOpen MyDeskBot chat panel
Open SettingsCtrl+,Cmd+,Open settings
Toggle MyDeskBotCtrl+Shift+P → "Toggle"Cmd+Shift+P → "Toggle"Enable/disable MyDeskBot
Show CommandsCtrl+Shift+PCmd+Shift+PShow all MyDeskBot commands

Code Completion

ActionWindows/LinuxmacOSDescription
Trigger CompletionCtrl+SpaceCtrl+SpaceShow inline completions
Accept SuggestionTabTabAccept current suggestion
Accept WordCtrl+RightAlt+RightAccept next word
Accept LineCtrl+DownCtrl+DownAccept current line
DismissEscEscDismiss suggestions
Next SuggestionAlt+]Alt+]Next inline suggestion
Previous SuggestionAlt+[Alt+[Previous inline suggestion

Code Actions

ActionWindows/LinuxmacOSDescription
Explain CodeCtrl+Shift+ECmd+Shift+EExplain selected code
Refactor CodeCtrl+Shift+RCmd+Shift+RRefactor selected code
Find BugsCtrl+Shift+BCmd+Shift+BFind bugs in selection
OptimizeCtrl+Shift+OCmd+Shift+OOptimize selected code
Add CommentsCtrl+Shift+DCmd+Shift+DGenerate documentation
Generate TestsCtrl+Shift+TCmd+Shift+TGenerate tests

Chat

ActionWindows/LinuxmacOSDescription
Open ChatCtrl+Shift+MCmd+Shift+MOpen chat panel
Send MessageEnterEnterSend chat message
New LineShift+EnterShift+EnterInsert new line without sending
Clear ChatCtrl+LCmd+LClear chat history
Focus InputCtrl+/Cmd+/Focus chat input
Copy Last ResponseCtrl+Shift+CCmd+Shift+CCopy last AI response

Plan Mode

ActionWindows/LinuxmacOSDescription
Open Plan ModeCtrl+Shift+P → "Plan"Cmd+Shift+P → "Plan"Open plan mode
Accept PlanEnterEnterAccept current plan
Edit StepEEEdit selected step
Delete StepDDDelete selected step
Add SubtaskAAAdd subtask to step
Show Next StepNNShow/expand next step
Export PlanCtrl+ECmd+EExport plan

Editor-Specific Shortcuts

IntelliJ IDEA

ActionShortcutDescription
Open MyDeskBot PanelAlt+MOpen side panel
Inline ChatCtrl+Shift+MStart inline chat
ExplainCtrl+Shift+EExplain selected code
RefactorCtrl+Shift+RRefactor selected code

Visual Studio Code

ActionShortcutDescription
Open Chat PanelCtrl+Shift+P → "Open Chat"Open side panel
Inline ChatCtrl+Shift+IStart inline chat
ExplainCtrl+Shift+EExplain selected code
RefactorCtrl+Shift+RRefactor selected code
CompleteCtrl+SpaceTrigger completion

Neovim

ActionShortcutDescription
Open Chat Panel<leader>mcOpen chat panel
Inline Chat<leader>miStart inline chat
Explain Code<leader>meExplain selected code
Refactor Code<leader>mrRefactor selected code
Complete<Tab>Trigger completion
Toggle<leader>mtToggle MyDeskBot

Customizing Shortcuts

IntelliJ IDEA

  1. Go to SettingsKeymap
  2. Search for "MyDeskBot"
  3. Double-click a shortcut to change it
  4. 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:

  1. Ctrl+K Ctrl+S
  2. Search for "MyDeskBot"
  3. 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:

ActionShortcut
Generate Commit MessageCtrl+Shift+P → "Generate Commit Message"
Review PR ChangesCtrl+Shift+P → "Review PR"
Explain ErrorCtrl+Shift+P → "Explain Error"
Fix ErrorCtrl+Shift+P → "Fix Error"
Generate DocumentationCtrl+Shift+P → "Generate Docs"

Multi-cursor Shortcuts

MyDeskBot works with multi-cursor selections:

ActionWindows/LinuxmacOSDescription
Add CursorCtrl+Alt+Up/DownCmd+Option+Up/DownAdd cursor above/below
Select All OccurrencesCtrl+Shift+Alt+JCmd+Shift+Cmd+JSelect all occurrences
Explain AllCtrl+Shift+ECmd+Shift+EExplain all selections
ActionWindows/LinuxmacOSDescription
Go to DefinitionF12F12Go to definition
Find ReferencesShift+F12Shift+F12Find references
Peek DefinitionAlt+F12Alt+F12Peek definition
Quick OpenCtrl+PCmd+PQuick open file

Tips for Efficiency

1. Learn Essential Shortcuts First

Start with these essential shortcuts:

  • Ctrl+Shift+M / Cmd+Shift+M - Open chat
  • Tab - Accept suggestions
  • Ctrl+Shift+E / Cmd+Shift+E - Explain code
  • Ctrl+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

  1. Settings → Keymap
  2. Find conflicting shortcuts
  3. Right-click → "Remove" or "Add Mouse Shortcut"
  4. 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:

ActionWindows/LinuxmacOSDescription
Read AloudCtrl+Shift+RCmd+Shift+RRead selected text
Increase Font SizeCtrl++Cmd++Increase font size
Decrease Font SizeCtrl+-Cmd+-Decrease font size
Reset Font SizeCtrl+0Cmd+0Reset font size

Cheat Sheet

Download and print the official keyboard shortcuts cheat sheet:

Download PDF

See Also