Keyboard shortcuts for students
Search, tabs, the problem list, the code editor, submissions and the inbox from the keyboard.
Press ? anywhere in the app to see the list of shortcuts: first those of the page you are on, then the ones that work everywhere, with your computer’s keys. It is also in the account menu under Keyboard shortcuts. Buttons that have a shortcut show it in their tooltip.
Shortcuts work when you are not typing in a field. Search (Ctrl K) works while typing too, except in the code editor.
Everywhere
Section titled “Everywhere”| Action | Windows, Linux, ChromeOS | macOS |
|---|---|---|
| Search | Ctrl K | ⌘ K |
| Show or hide the sidebar | [ | [ |
| New tab | Alt N | ⌥ N |
| Close tab | Alt W | ⌥ W |
| Go to tab 1–8 | Alt 1 … 8 | ⌥ 1 … 8 |
| Go to the last tab | Alt 9 | ⌥ 9 |
| Previous or next tab | Alt [ / Alt ] | ⌥ [ / ⌥ ] |
| Reopen closed tab | Alt Shift T | ⌥ ⇧ T |
| Go to the course’s problems | G then P | G then P |
| Go to your submissions | G then S | G then S |
| Go to the inbox | G then I | G then I |
| Show keyboard shortcuts | ? | ? |
| Close a menu, dialog or side panel | Esc | Esc |
Hold Ctrl (⌘ on a Mac) while clicking a link to open it in a new tab in the background.
G then P or S goes to the course you are in, or to your first course from elsewhere.
In the search dialog, pick a result with ↑ ↓ and open it with Enter. Before you type, it lists what you can do on the page you are on: in the editor, Run samples, Submit, Show my last submission and Ask your teacher about this problem; on a problem’s page, the next or previous problem and Open editor. Then come Go to, the tabs you viewed recently, your courses, and problems and wiki pages as you type.
Problems
Section titled “Problems”In a course’s Problems:
| Action | Key |
|---|---|
| Next or previous problem in the list | J / K |
| Open the highlighted problem | Enter |
On a problem’s page:
| Action | Key |
|---|---|
| Next problem | J |
| Previous problem | K |
| Open the editor | E |
E works on programming problems you can solve right now. Excel tasks are solved by downloading and uploading a workbook, so they have no editor.
Slides
Section titled “Slides”In slides shown in a statement or a wiki page, once you have selected one of their buttons (in full screen, anywhere):
| Action | Key |
|---|---|
| Next or previous slide | → / ← (also PgDn / PgUp) |
| First or last slide | Home / End |
| Full screen on or off | F |
| Next slide in full screen | Space or a click on the slide |
| Leave full screen | Esc |
On a touch screen, swipe the slide left or right.
Code editor
Section titled “Code editor”The editor shows the same list under Editor options → Keyboard shortcuts.
| Action | Windows, Linux, ChromeOS | macOS |
|---|---|---|
| Run samples | Ctrl Enter | ⌘ Enter |
| Submit | Ctrl Shift Enter | ⌘ ⇧ Enter |
| Save draft | Ctrl S | ⌘ S |
| Command palette | F1 | F1 |
| Find | Ctrl F | ⌘ F |
| Replace | Ctrl H | ⌥ ⌘ F |
| Go to line | Ctrl G | ⌃ G |
| Add a cursor | Alt + click | ⌥ + click |
| Duplicate the line or selection | Ctrl D | ⌘ D |
| Fold or unfold a block | Ctrl Shift [ | ⌥ ⌘ [ |
| Comment or uncomment lines | Ctrl / | ⌘ / |
| Word wrap | Alt Z | ⌥ Z |
| Tab moves focus | Ctrl M | ⌃ ⇧ M |
- Run, Submit and Save also work while focus is elsewhere in the workspace (outside the editor), as long as no dialog or menu is open.
- While the editor has focus, the shortcuts for everywhere are off: Ctrl K belongs to the editor there. To search, leave the editor first.
- Tab normally indents code. Press Ctrl M (⌃ ⇧ M on a Mac) so that Tab and Shift Tab move focus out of the editor; press it again to switch back.
- Drag the gap between panes to resize them, or double-click it to hide or show the statement or the tests. When the gap has keyboard focus, the arrow keys resize and Enter hides or shows.
Submissions
Section titled “Submissions”In a course’s Submissions:
| Action | Key |
|---|---|
| Next or previous row | J / K (↓ / ↑ in the list too) |
| Open or close the result in the side panel | Space |
| Close the result | Esc |
While a result is open, J and K change it along with the row.
Inbox and messages
Section titled “Inbox and messages”The Inbox works like Linear’s:
| Action | Key |
|---|---|
| Next or previous notification | J / K (↓ / ↑ in the list too) |
| Show the notification beside the list | Space |
| Open what the notification is about | Enter |
| Mark as read or unread | U |
| Archive | E or Backspace |
| Snooze | H |
| Close the notification | Esc |
In Messages, move between conversations with J / K (↓ / ↑ in the list too). Send a message with Ctrl Enter (⌘ Enter on a Mac).
- Side panels (such as a submission’s result): Esc closes them. With the panel’s edge focused, ← / → change its width (bigger steps with Shift), Home / End set the narrowest or widest, and a double-click on the edge restores the usual width. The sidebar’s width works the same way.
- Settings: Esc leaves Settings and takes you back where you were.
- Submission calendar on My work: pick a day with the arrow keys.