Skip to content

Keyboard Shortcuts in Trae IDE

Trae provides various keyboard shortcuts to enhance your development efficiency. Here's how to use them:


Frequently-used Keyboard Shortcuts

Text Editing

ActionKeyboard Shortcut (macOS)
Edit a new lineCommand + Enter
Copy a line (no selection needed)Command + C
Cut a line (no selection needed)Command + X
Paste a lineCommand + V
Select a line (or next line)Command + L
Undo actionCommand + Z
Redo actionCommand + Shift + Z
Comment out a lineCommand + /
Invoke search boxCommand + F
Search next itemEnter
Search previous itemShift + Enter
Rename symbolF2 or Enter
Go to definitionCommand + F12
Trigger code auto-completionCtrl + Space

Global Settings

ActionKeyboard Shortcut (macOS)
Open command paletteCommand + Shift + P
Open file navigatorCommand + P
Open global searchCommand + Shift + F
Open settingsCommand + ,

AI Chat

ActionKeyboard Shortcut (macOS)
Open side AI chat boxCommand + U
Open inline AI chat boxCommand + I

Managing Keyboard Shortcuts

To customize your keyboard shortcuts:

  1. Click the profile icon in the top right corner of Trae
  2. Select Keyboard Shortcuts
  3. In the Keyboard Shortcuts window, right-click any shortcut entry to:
    • Modify existing keybindings
    • Add new keybindings
    • Delete keybindings
    • Perform other customization options