Skip to content

Keyboard Shortcuts

Master IfAI with these keyboard shortcuts.

Global Shortcuts

ActionmacOSWindows/Linux
Command PaletteCmd+Shift+PCtrl+Shift+P
Quick Open FileCmd+PCtrl+P
Recent FilesCmd+RCtrl+R
Save FileCmd+SCtrl+S
Save AllCmd+Shift+SCtrl+Shift+S
Close FileCmd+WCtrl+W
SettingsCmd+,Ctrl+,

Editor Shortcuts

ActionmacOSWindows/Linux
Go to LineCtrl+GCtrl+G
Go to SymbolCmd+Shift+OCtrl+Shift+O
Go to DefinitionF12F12
Find ReferencesShift+F12Shift+F12
BackCtrl+-Alt+Left
ForwardCtrl+Shift+-Alt+Right

Editing

ActionmacOSWindows/Linux
UndoCmd+ZCtrl+Z
RedoCmd+Shift+ZCtrl+Shift+Z
CutCmd+XCtrl+X
CopyCmd+CCtrl+C
PasteCmd+VCtrl+V
Select AllCmd+ACtrl+A
Delete LineCmd+Shift+KCtrl+Shift+K
Move Line UpOption+Shift+UpAlt+Shift+Up
Move Line DownOption+Shift+DownAlt+Shift+Down

Multi-Cursor

ActionmacOSWindows/Linux
Add Cursor AboveCmd+Option+UpCtrl+Alt+Up
Add Cursor BelowCmd+Option+DownCtrl+Alt+Down
Add Cursor at ClickOption+ClickAlt+Click
Select All OccurrencesCmd+Shift+LCtrl+Shift+L

AI Shortcuts

ActionmacOSWindows/Linux
Open AI ChatCmd+KCtrl+K
Inline AICmd+KCtrl+K
Open ComposerCmd+Shift+KCtrl+Shift+K
Accept AI SuggestionTabTab
Reject AI SuggestionEscEsc

Search & Replace

ActionmacOSWindows/Linux
FindCmd+FCtrl+F
ReplaceCmd+Alt+FCtrl+H
Find in FilesCmd+Shift+FCtrl+Shift+F
Next MatchEnter or Cmd+GEnter or F3
Previous MatchShift+Enter or Cmd+Shift+GShift+Enter or Shift+F3

Panel Shortcuts

ActionmacOSWindows/Linux
Toggle SidebarCmd+BCtrl+B
Toggle TerminalCtrl+ Ctrl+ `
Focus EditorCmd+1Ctrl+1
Focus File TreeCmd+Shift+ECtrl+Shift+E
Focus AI ChatCmd+2Ctrl+2
Focus TerminalCmd+3Ctrl+3

Keybinding Schemes

IfAI supports multiple keybinding schemes:

VS Code (Default)

Full compatibility with VS Code shortcuts.

IntelliJ

Familiar shortcuts for IntelliJ IDEA users.

Vim

Full Vim mode with Vim keybindings.

Enable Vim Mode:

  1. Settings > Editor > Keybindings
  2. Select "Vim"
  3. Restart IfAI

Customizing Shortcuts

Creating Custom Keybindings

  1. Cmd+Shift+P > "Open Keyboard Shortcuts"
  2. Find the command you want to customize
  3. Click the edit icon
  4. Press your desired keybinding
  5. Click "Save"

Example Customizations

json
{
  "ai.chat.open": "Cmd+Shift+A",
  "editor.format": "Cmd+Shift+F",
  "workbench.action.quickOpen": "Cmd+O"
}

macOS Specific

Function Keys

If function keys don't work:

  1. System Preferences > Keyboard
  2. Uncheck "Use F1, F2, etc. as standard function keys"
  3. Or use Fn key combination

Option Key Behavior

For international keyboards:

  1. Settings > Editor > Keyboard
  2. Configure "Option Key Behavior"
  3. Choose between Meta or Character

Cheat Sheet

Print this quick reference:

┌─────────────────────────────────────────┐
│  IfAI Keyboard Shortcuts                │
├─────────────────────────────────────────┤
│  Cmd+P     - Quick Open                 │
│  Cmd+K     - AI Chat                    │
│  Cmd+Shift+K - Composer                 │
│  F12       - Go to Definition           │
│  Shift+F12 - Find References            │
│  Cmd+S     - Save                      │
│  Cmd+,     - Settings                   │
├─────────────────────────────────────────┤
│  Ctrl+`    - Toggle Terminal            │
│  Cmd+B     - Toggle Sidebar             │
│  Cmd+D     - Select Next Occurrence     │
└─────────────────────────────────────────┘

Next Steps

Released under the MIT License.