Essential Keyboard Shortcuts

ShortcutActionDescription
⌘ + LNew Chat with codeStart a new AI chat with your selected code
⌘ + NNew empty chatCreate a fresh chat without code context
⌘ + ⇧ + LAdd to current chatAppend selected code to current chat
⌘ + KInline completionsGet quick inline code suggestions
⌘ + PAdvanced searchOpen the advanced search panel
⌘ + /Switch AI modelsToggle between different AI models
⌘ + ⌫Stop generationImmediately stop the current AI response
⌘ + TNew tabCreate a new chat tab
⌘ + WClose tabClose the current chat tab
Ctrl + TabSwitch tabsNavigate between chat tabs
⌘ + ⇧ + GGit panelOpen the Git status panel
⌘ + ⇧ + VVoice modeToggle voice recording on/off
escClose panelUniversal close button for any open panel

AI Models & Their Strengths

ModelBest For
Claude Sonnet 3.5Large codebases and complex tasks
Grok BetaChat and coding tasks
PerplexityCoding documentation and examples from internet
GPT-4oGeneral coding and chat tasks
o1Advanced reasoning in coding and mathematics

These model recommendations are opinionated and based on general use cases. You should experiment with different models to find which ones work best for your specific needs and coding style. Each developer may have different preferences based on their workflow and the types of problems they are solving.

Search Features

  • Advanced Search (⌘ + P)
    • Search through codebase
    • Filter by file type
    • Jump to specific files

Best Practices

  1. Code Context

    • Select relevant code before starting chat
    • Include imports and related types
    • Provide clear and specific questions
  2. Model Selection

    • Switch models if not getting desired results

Common Use Cases & Workflows

Code Review

  1. Select code → ⌘ + L
  2. Ask for review
  3. Add context with ⌘ + ⇧ + L if needed
  4. Use ▶️ to apply suggestions

Quick Fixes

  1. Place cursor where you want to fix
  2. ⌘ + K for suggestions
  3. Use esc to dismiss if needed

Warnings and Errors

  1. Click error/warning indicator in Xcode’s editor near line number
  2. Review AI-suggested fixes
  3. Click ▶️ to implement changes, or use Quick Apply (⏩) for instant application
  4. For complex cases:
    • Select problematic code and copy error/warning
    • Use ⌘ + L for detailed help
    • Add context as needed

Common fixes include:

  • Build errors (imports, types)
  • Deprecated API usage

Configuration Tips

  • Customize shortcuts in Settings
  • Set up system and custom prompts for repeated tasks

Common Pitfalls to Avoid

  • Do not provide too little context
  • Do not stick with one model if struggling