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
| Action | Keyboard Shortcut (macOS) |
|---|
| Edit a new line | Command + Enter |
| Copy a line (no selection needed) | Command + C |
| Cut a line (no selection needed) | Command + X |
| Paste a line | Command + V |
| Select a line (or next line) | Command + L |
| Undo action | Command + Z |
| Redo action | Command + Shift + Z |
| Comment out a line | Command + / |
| Invoke search box | Command + F |
| Search next item | Enter |
| Search previous item | Shift + Enter |
| Rename symbol | F2 or Enter |
| Go to definition | Command + F12 |
| Trigger code auto-completion | Ctrl + Space |
Global Settings
| Action | Keyboard Shortcut (macOS) |
|---|
| Open command palette | Command + Shift + P |
| Open file navigator | Command + P |
| Open global search | Command + Shift + F |
| Open settings | Command + , |
AI Chat
| Action | Keyboard Shortcut (macOS) |
|---|
| Open side AI chat box | Command + U |
| Open inline AI chat box | Command + I |
Managing Keyboard Shortcuts
To customize your keyboard shortcuts:
- Click the profile icon in the top right corner of Trae
- Select Keyboard Shortcuts
- In the Keyboard Shortcuts window, right-click any shortcut entry to:
- Modify existing keybindings
- Add new keybindings
- Delete keybindings
- Perform other customization options