Keyboard Shortcuts
Master IfAI with these keyboard shortcuts.
Global Shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Command Palette | Cmd+Shift+P | Ctrl+Shift+P |
| Quick Open File | Cmd+P | Ctrl+P |
| Recent Files | Cmd+R | Ctrl+R |
| Save File | Cmd+S | Ctrl+S |
| Save All | Cmd+Shift+S | Ctrl+Shift+S |
| Close File | Cmd+W | Ctrl+W |
| Settings | Cmd+, | Ctrl+, |
Editor Shortcuts
Navigation
| Action | macOS | Windows/Linux |
|---|---|---|
| Go to Line | Ctrl+G | Ctrl+G |
| Go to Symbol | Cmd+Shift+O | Ctrl+Shift+O |
| Go to Definition | F12 | F12 |
| Find References | Shift+F12 | Shift+F12 |
| Back | Ctrl+- | Alt+Left |
| Forward | Ctrl+Shift+- | Alt+Right |
Editing
| Action | macOS | Windows/Linux |
|---|---|---|
| Undo | Cmd+Z | Ctrl+Z |
| Redo | Cmd+Shift+Z | Ctrl+Shift+Z |
| Cut | Cmd+X | Ctrl+X |
| Copy | Cmd+C | Ctrl+C |
| Paste | Cmd+V | Ctrl+V |
| Select All | Cmd+A | Ctrl+A |
| Delete Line | Cmd+Shift+K | Ctrl+Shift+K |
| Move Line Up | Option+Shift+Up | Alt+Shift+Up |
| Move Line Down | Option+Shift+Down | Alt+Shift+Down |
Multi-Cursor
| Action | macOS | Windows/Linux |
|---|---|---|
| Add Cursor Above | Cmd+Option+Up | Ctrl+Alt+Up |
| Add Cursor Below | Cmd+Option+Down | Ctrl+Alt+Down |
| Add Cursor at Click | Option+Click | Alt+Click |
| Select All Occurrences | Cmd+Shift+L | Ctrl+Shift+L |
AI Shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Open AI Chat | Cmd+K | Ctrl+K |
| Inline AI | Cmd+K | Ctrl+K |
| Open Composer | Cmd+Shift+K | Ctrl+Shift+K |
| Accept AI Suggestion | Tab | Tab |
| Reject AI Suggestion | Esc | Esc |
Search & Replace
| Action | macOS | Windows/Linux |
|---|---|---|
| Find | Cmd+F | Ctrl+F |
| Replace | Cmd+Alt+F | Ctrl+H |
| Find in Files | Cmd+Shift+F | Ctrl+Shift+F |
| Next Match | Enter or Cmd+G | Enter or F3 |
| Previous Match | Shift+Enter or Cmd+Shift+G | Shift+Enter or Shift+F3 |
Panel Shortcuts
| Action | macOS | Windows/Linux |
|---|---|---|
| Toggle Sidebar | Cmd+B | Ctrl+B |
| Toggle Terminal | Ctrl+ | Ctrl+ ` |
| Focus Editor | Cmd+1 | Ctrl+1 |
| Focus File Tree | Cmd+Shift+E | Ctrl+Shift+E |
| Focus AI Chat | Cmd+2 | Ctrl+2 |
| Focus Terminal | Cmd+3 | Ctrl+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:
- Settings > Editor > Keybindings
- Select "Vim"
- Restart IfAI
Customizing Shortcuts
Creating Custom Keybindings
Cmd+Shift+P> "Open Keyboard Shortcuts"- Find the command you want to customize
- Click the edit icon
- Press your desired keybinding
- 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:
- System Preferences > Keyboard
- Uncheck "Use F1, F2, etc. as standard function keys"
- Or use
Fnkey combination
Option Key Behavior
For international keyboards:
- Settings > Editor > Keyboard
- Configure "Option Key Behavior"
- 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
- Basic Usage - Learn core features
- Settings Reference - Customize keybindings
- AI Chat Guide - AI-assisted workflows