Keys
The keys you will use most, written for macOS. On Windows and Linux, Cmd is Ctrl, and Alt is the Option key on a Mac. The palette (Cmd+Shift+P) shows each command's key beside its name, and the editor's full keymap lists every default key and where it comes from.
Everywhere
| Key | What it does |
|---|---|
| Cmd+Shift+P | The command palette: every command the IDE has, searched by name |
| Cmd+P | Open a file of the project by name |
| Cmd+; | The command line, which runs a command by its id and asks for each value it needs |
| Cmd+1, Cmd+2, Cmd+3, Cmd+4 | Give the keyboard to the editor, the left, right or bottom panel |
| Cmd+Shift+F | Search the project |
| Ctrl+Tab | Switch to another open file |
| Cmd+\ | Split the editor to the right |
| Cmd+Alt+\ | Split the editor down |
| Cmd+Shift+\ | Close the split |
| Cmd+Shift+B | Show or hide the outline of the file |
| Cmd+Alt+G | Run the game in the window's Game tab, or in its own window beside it, from the next Play |
| Ctrl+Shift+` | A new terminal |
| Cmd+Alt+S | Record a checkpoint of the project |
| Cmd+, | Settings |
The code editor
| Key | What it does |
|---|---|
| F12 | Go to the definition of the name under the caret |
| Shift+F12 | List the references to it; a click opens one |
| F2 | Rename it everywhere |
| Ctrl+Space | Complete the name being typed |
| Cmd+F | Find and replace in the file |
| Cmd+S | Save |
| Cmd+. | The quick fixes for the problem at the caret |
| Cmd+Shift+I | Format the file: indent with tabs, trim trailing spaces |
| Cmd+K | Ask the agent to change the selection (Inline edit) |
| Ctrl+G | Go to a line |
| Cmd+Shift+O | Go to a symbol in the file |
| Cmd+Alt+[ and Cmd+Alt+] | Fold and unfold the block the caret is in; with Shift, every block |
| Ctrl+Alt+W | Turn soft wrap on or off |
Resting the pointer on a name shows its declaration.
Building and playing
| Key | What it does |
|---|---|
| F5 | Play: build the mod and start the game |
| Shift+F5 | Stop the game |
| Cmd+Shift+F5 | Start the running map again |
| F6 | Pause the game |
| F8 | Resume it |
| F10 | Run one server frame of a paused game |
| Cmd+Shift+R | Reload the program in the running game |
| F7 | Build the project |
| Shift+F7 | List every error and warning, as the Problems panel does |
| Cmd+F7 | Compile the project and say whether it is clean |
| Cmd+Shift+T | Run the project's tests |
| Cmd+Alt+E | Export the mod for players |
The map editor
These follow TrenchBroom's default keys where TrenchBroom has the same action.
| Key | What it does |
|---|---|
| W A S D, Q X | Fly the 3D view forward, left, back and right, up and down |
| B, C, V, M, L, P, H | The brush, clip, vertex, move, measure, shape and hull tools |
| Enter | Make the brush drawn, or cut with the clip plane |
| Esc | Drop the tool's work in hand, then the selection |
| arrows, Page Up, Page Down | Move the selection a grid step |
| Alt+Left, Alt+Right | Turn the selection a quarter turn |
| 1 to 9 | Set the grid from 1 to 256 units; + and - double and halve it |
| Cmd+D | Duplicate the selection |
| Delete | Delete the selection |
| Cmd+U | Frame the selection in the 3D view |
| Cmd+G, Cmd+Shift+G | Group and ungroup |
| Cmd+I, Cmd+Alt+I, Cmd+Shift+I | Isolate the selection, hide it, show everything |
| Alt+1 to Alt+7 | Top, bottom, front, back, left, right and isometric views |
| Cmd+B | Compile the map with the chosen profile |
| Cmd+Shift+K | Check the map for leaks |
| Cmd+S | Save the map |
With faces picked, the arrows and Page Up and Page Down move and turn their textures instead: Shift for a coarse step, Cmd for a fine one.
Vim mode
To edit with Vim's keys, set editor.key_mode to vim (Settings),
then start the app again. In settings.toml:
[editor]
key_mode = "vim"
The editor starts in Normal mode, with Vim's insert and visual modes, motions, operators,
counts, registers and ..
Changing a key
Write keymap.toml in the app's config folder: on macOS
~/Library/Application Support/QuakeC Studio, on Windows %APPDATA%\QuakeC Studio, on Linux
~/.config/quakec-studio. Each binding names its keys and a command from the palette:
[[binding]]
keys = "secondary-shift-b"
command = "project.build"
secondary is Cmd on macOS and Ctrl elsewhere; the other modifiers are ctrl, alt
and shift. Your binding wins over a default that uses the same keys. The change takes
effect at once, and a binding the app cannot read is reported while the rest still apply.