docs
How to use cdbx
Keyboard Shortcuts

Keyboard Shortcuts

Tip: Press Shift + C inside the editor to open the full keyboard shortcut reference without leaving your app.

Command Bar

The command bar is the fastest way to navigate your app. Press the shortcut from anywhere in the editor — including when the code editor has focus.

ActionMacWindows / Linux
Go to file⌘ PCtrl P
Run editor command⌘ ⇧ PCtrl Shift P
Search in files⌘ ⇧ FCtrl Shift F
Go to symbol in editor⌘ ⇧ OCtrl Shift O
Close command barEscEsc

Mode switching inside the bar

You can switch modes by typing a prefix character — no need to close and reopen.

PrefixModeExample
(none)Go to fileApp
>Editor commands> Toggle Sidebar
#Search in files# useState

Use ↑ ↓ to navigate results, Enter to open, Esc to close. Clicking a result with the mouse works too.

Settings panels

ActionShortcut
Open Editor PreferencesShift + P
Open Editor SettingsShift + S
Open Keyboard ShortcutsShift + C
Open Power Mode ConfigShift + X
Open Experiment ConfigShift + E
Open Experiment ActionsShift + A
Open AI SettingsSettings menu (⚙) → AI

File tree

Click anywhere in the file tree panel to give it keyboard focus, then use these shortcuts.

ActionShortcut
New fileN
New folderShift + N
Collapse all foldersCollapse All button in tree header

Tab bar

Right-click any open tab for a context menu with:

ActionDescription
CloseClose this tab
Close OthersClose every tab except this one
Close to the RightClose all tabs to the right of this one
Reveal in File TreeScroll the file tree to this file and highlight it
Copy Relative PathCopy the @/src/… path to the clipboard

The overflow chevron (⌄) appears at the right edge of the tab bar when there are more open tabs than fit — click it to see and switch to any open file.

Code editor

ActionMacWindows / Linux
Comment selection⌘ K CCtrl K C
Uncomment selection⌘ K UCtrl K U
Toggle line comment⌘ /Ctrl /
Find⌘ FCtrl F
Find and replace⌘ HCtrl H
Go to lineCtrl GCtrl G
Rename symbol (all files)fn F2 (or F2 with standard fn keys)F2
Format document⇧ ⌥ FShift Alt F
Multi-cursor⌥ ClickAlt Click
Select all occurrences⌘ ⇧ LCtrl Shift L
Move line up / down⌥ ↑ / ↓Alt ↑ / ↓
Duplicate line⇧ ⌥ ↓Shift Alt ↓
Delete line⌘ ⇧ KCtrl Shift K
Fold region⌘ ⌥ [Ctrl Shift [
Unfold region⌘ ⌥ ]Ctrl Shift ]
Trigger autocompleteCtrl SpaceCtrl Space

AI Chat

ActionHow
Send messageEnter
New line in messageShift + Enter
New chatClick the + button in the chat header
Fix errorClick Fix error when a build/runtime error appears
Open AI SettingsSettings menu (⚙) → AI → AI Settings Panel