Skip to content

Keyboard Shortcuts

Master ByteBuddy with these essential keyboard shortcuts designed to boost your productivity and streamline your AI-assisted development workflow.

General Shortcuts

Opening ByteBuddy

ShortcutActionDescription
Ctrl+Shift+BOpen ByteBuddyQuick access to ByteBuddy panel
Cmd+Shift+BOpen ByteBuddymacOS equivalent
Ctrl+Alt+BToggle ByteBuddyShow/hide ByteBuddy panel
Cmd+Option+BToggle ByteBuddymacOS equivalent

Chat Interface

ShortcutActionDescription
EnterSend MessageSubmit your query to ByteBuddy
Shift+EnterNew LineAdd a line break in your message
EscClose ChatClose the chat interface
Ctrl+LClear ChatClear conversation history
Cmd+LClear ChatmacOS equivalent

Code Interaction

Code Selection

ShortcutActionDescription
Ctrl+Shift+CSelect CodeSelect current line or highlighted code
Cmd+Shift+CSelect CodemacOS equivalent
Ctrl+Alt+CCopy CodeCopy selected code to clipboard
Cmd+Option+CCopy CodemacOS equivalent
Ctrl+Shift+VPaste CodePaste code from clipboard
Cmd+Shift+VPaste CodemacOS equivalent

Code Actions

ShortcutActionDescription
Ctrl+Shift+EExplain CodeAsk ByteBuddy to explain selected code
Cmd+Shift+EExplain CodemacOS equivalent
Ctrl+Shift+FFind in CodeSearch for patterns in codebase
Cmd+Shift+FFind in CodemacOS equivalent
Ctrl+Shift+RRefactor CodeRequest code refactoring suggestions
Cmd+Shift+RRefactor CodemacOS equivalent
Ctrl+Shift+TGenerate TestsCreate tests for selected code
Cmd+Shift+TGenerate TestsmacOS equivalent

File Operations

File Management

ShortcutActionDescription
Ctrl+Shift+NNew FileCreate a new file
Cmd+Shift+NNew FilemacOS equivalent
Ctrl+OOpen FileOpen an existing file
Cmd+OOpen FilemacOS equivalent
Ctrl+SSave FileSave current file
Cmd+SSave FilemacOS equivalent
Ctrl+Shift+SSave AsSave file with new name
Cmd+Shift+SSave AsmacOS equivalent

File Navigation

ShortcutActionDescription
Ctrl+PQuick OpenQuickly open files by name
Cmd+PQuick OpenmacOS equivalent
Ctrl+TabSwitch FilesCycle through open files
Cmd+TabSwitch FilesmacOS equivalent
Ctrl+WClose FileClose current file
Cmd+WClose FilemacOS equivalent
Ctrl+Shift+WClose AllClose all open files
Cmd+Shift+WClose AllmacOS equivalent

Editing Shortcuts

Text Editing

ShortcutActionDescription
Ctrl+ZUndoUndo last action
Cmd+ZUndomacOS equivalent
Ctrl+YRedoRedo last undone action
Cmd+YRedomacOS equivalent
Ctrl+XCutCut selected text
Cmd+XCutmacOS equivalent
Ctrl+CCopyCopy selected text
Cmd+CCopymacOS equivalent
Ctrl+VPastePaste from clipboard
Cmd+VPastemacOS equivalent

Advanced Editing

ShortcutActionDescription
Ctrl+DDuplicate LineDuplicate current line
Cmd+DDuplicate LinemacOS equivalent
Ctrl+Shift+DDelete LineDelete current line
Cmd+Shift+DDelete LinemacOS equivalent
Ctrl+/Toggle CommentComment/uncomment selected lines
Cmd+/Toggle CommentmacOS equivalent
Ctrl+Shift+UpMove Line UpMove current line up
Cmd+Shift+UpMove Line UpmacOS equivalent
Ctrl+Shift+DownMove Line DownMove current line down
Cmd+Shift+DownMove Line DownmacOS equivalent

AI Assistance

Quick Actions

ShortcutActionDescription
Ctrl+Shift+IInline AssistGet inline AI suggestions
Cmd+Shift+IInline AssistmacOS equivalent
Ctrl+Shift+GGenerate CodeGenerate code based on description
Cmd+Shift+GGenerate CodemacOS equivalent
Ctrl+Shift+QQuick QuestionAsk a quick question
Cmd+Shift+QQuick QuestionmacOS equivalent
Ctrl+Shift+MModel SelectorSwitch between AI models
Cmd+Shift+MModel SelectormacOS equivalent

Context Actions

ShortcutActionDescription
Ctrl+Shift+KKnowledge BaseAccess documentation and knowledge
Cmd+Shift+KKnowledge BasemacOS equivalent
Ctrl+Shift+HHistoryView conversation history
Cmd+Shift+HHistorymacOS equivalent
Ctrl+Shift+JJump to CodeNavigate to referenced code
Cmd+Shift+JJump to CodemacOS equivalent
Ctrl+Shift+UUpdate ContextRefresh code context
Cmd+Shift+UUpdate ContextmacOS equivalent

Search and Navigation

Search Functions

ShortcutActionDescription
Ctrl+FFindSearch in current file
Cmd+FFindmacOS equivalent
Ctrl+HReplaceReplace text in current file
Cmd+HReplacemacOS equivalent
Ctrl+Shift+HReplace AllReplace all instances
Cmd+Shift+HReplace AllmacOS equivalent
F3Find NextNavigate to next match
Shift+F3Find PreviousNavigate to previous match
ShortcutActionDescription
Ctrl+GGo to LineJump to specific line number
Cmd+GGo to LinemacOS equivalent
Ctrl+Shift+OOutlineShow file structure outline
Cmd+Shift+OOutlinemacOS equivalent
Ctrl+Shift+PCommand PaletteAccess all commands
Cmd+Shift+PCommand PalettemacOS equivalent
F2Rename SymbolRename variable/function across files
Shift+F2Find ReferencesFind all references to symbol

Debugging

Debug Actions

ShortcutActionDescription
F5Start DebuggingBegin debugging session
F9Toggle BreakpointSet/remove breakpoint
F10Step OverExecute next line
F11Step IntoEnter function call
Shift+F11Step OutExit current function
Ctrl+Shift+F5Restart DebuggingRestart debug session
Cmd+Shift+F5Restart DebuggingmacOS equivalent
Shift+F5Stop DebuggingEnd debug session

Version Control

Git Operations

ShortcutActionDescription
Ctrl+Shift+GGit PanelOpen Git integration panel
Cmd+Shift+GGit PanelmacOS equivalent
Ctrl+EnterCommitCommit staged changes
Cmd+EnterCommitmacOS equivalent
Ctrl+Shift+EnterCommit and PushCommit and push changes
Cmd+Shift+EnterCommit and PushmacOS equivalent
Ctrl+Shift+RRefreshRefresh Git status
Cmd+Shift+RRefreshmacOS equivalent

Customization

User Preferences

ShortcutActionDescription
Ctrl+,SettingsOpen preferences/settings
Cmd+,SettingsmacOS equivalent
Ctrl+K Ctrl+SKeyboard ShortcutsOpen shortcuts editor
Cmd+K Cmd+SKeyboard ShortcutsmacOS equivalent
Ctrl+K Ctrl+TThemesOpen theme selector
Cmd+K Cmd+TThemesmacOS equivalent

IDE-Specific Shortcuts

Visual Studio Code

ShortcutActionDescription
Ctrl+Shift+XExtensionsOpen extensions panel
Cmd+Shift+XExtensionsmacOS equivalent
Ctrl+Shift+YDebug ConsoleOpen debug console
Cmd+Shift+YDebug ConsolemacOS equivalent
Ctrl+Shift+UOutput PanelOpen output panel
Cmd+Shift+UOutput PanelmacOS equivalent
Ctrl+Shift+VMarkdown PreviewPreview markdown file
Cmd+Shift+VMarkdown PreviewmacOS equivalent

JetBrains IDEs

ShortcutActionDescription
Ctrl+Alt+SSettingsOpen settings dialog
Cmd+,SettingsmacOS equivalent
Ctrl+Shift+AFind ActionSearch for any action
Cmd+Shift+AFind ActionmacOS equivalent
Ctrl+Shift+F12Toggle Distraction FreeEnter/exit distraction-free mode
Cmd+Shift+F12Toggle Distraction FreemacOS equivalent
Ctrl+Alt+LReformat CodeFormat selected code
Cmd+Alt+LReformat CodemacOS equivalent

Advanced Shortcuts

Multi-Cursor Editing

ShortcutActionDescription
Ctrl+Alt+UpAdd Cursor AboveAdd cursor to line above
Cmd+Option+UpAdd Cursor AbovemacOS equivalent
Ctrl+Alt+DownAdd Cursor BelowAdd cursor to line below
Cmd+Option+DownAdd Cursor BelowmacOS equivalent
Ctrl+Shift+LSelect All OccurrencesSelect all instances of word
Cmd+Shift+LSelect All OccurrencesmacOS equivalent
Alt+ClickAdd CursorAdd cursor at clicked position
Option+ClickAdd CursormacOS equivalent

Column Selection

ShortcutActionDescription
Ctrl+Shift+Alt+UpColumn Select UpSelect column upwards
Cmd+Shift+Option+UpColumn Select UpmacOS equivalent
Ctrl+Shift+Alt+DownColumn Select DownSelect column downwards
Cmd+Shift+Option+DownColumn Select DownmacOS equivalent
Ctrl+Shift+Alt+LeftColumn Select LeftSelect column leftwards
Cmd+Shift+Option+LeftColumn Select LeftmacOS equivalent
Ctrl+Shift+Alt+RightColumn Select RightSelect column rightwards
Cmd+Shift+Option+RightColumn Select RightmacOS equivalent

Custom Shortcuts

Creating Custom Shortcuts

You can customize shortcuts in your settings:

json
// VS Code keybindings.json
[
  {
    "key": "ctrl+shift+a",
    "command": "bytebuddy.askQuestion",
    "when": "editorTextFocus"
  },
  {
    "key": "cmd+shift+a",
    "command": "bytebuddy.askQuestion",
    "when": "editorTextFocus"
  }
]

Best Practices for Customization

  1. Avoid Conflicts: Don't override essential IDE shortcuts
  2. Be Consistent: Use similar patterns for related actions
  3. Platform Awareness: Consider both Windows/Linux and macOS users
  4. Document Changes: Keep track of your custom shortcuts

Learning and Mastery

Memorization Tips

  1. Start with Essentials: Master the most frequently used shortcuts first
  2. Practice Regularly: Use shortcuts consistently in daily work
  3. Print Cheat Sheets: Keep a printed reference nearby
  4. Gradual Expansion: Add new shortcuts to your repertoire over time

Muscle Memory Development

  1. Deliberate Practice: Consciously use shortcuts instead of mouse
  2. Consistent Environment: Use the same shortcuts across projects
  3. Repetition: Repeat key combinations until they become automatic
  4. Feedback: Notice when you're faster and more efficient

Troubleshooting

Common Issues

Shortcut Not Working

  1. Check Conflicts: Verify shortcut isn't used by another command
  2. Restart IDE: Sometimes a restart resolves shortcut issues
  3. Check Settings: Ensure ByteBuddy extension is properly installed
  4. Update Extension: Make sure you're using the latest version

Platform Differences

  1. Mac vs PC: Remember Cmd vs Ctrl, Option vs Alt
  2. Function Keys: Some laptops require Fn key for function keys
  3. Custom Keymaps: Some IDEs have different default keymaps

Resetting Shortcuts

If shortcuts become corrupted:

bash
# For VS Code, reset keybindings
# File → Preferences → Keyboard Shortcuts → Reset Keybindings

# For JetBrains, reset keymap
# File → Settings → Keymap → Reset to Default

Productivity Boosters

Essential Shortcut Combinations

  1. Ctrl+Shift+B → Ask question about selected code
  2. Ctrl+Shift+R → Refactor selected code
  3. Ctrl+Shift+T → Generate tests for function
  4. Ctrl+Shift+E → Explain complex code block
  5. Ctrl+Shift+G → Generate code from description

Workflow Optimization

  1. Chain Shortcuts: Combine multiple shortcuts for complex tasks
  2. Context Awareness: Use different shortcuts for different contexts
  3. Speed vs Accuracy: Balance speed with precision
  4. Personal Style: Adapt shortcuts to your working style

Next Steps

After mastering these keyboard shortcuts, explore these related guides: