Keyboard and accessibility
All of CapyCode can be used with the keyboard, and the interface is designed for screen readers (NVDA, JAWS, VoiceOver): every button has a name, every area a title, and messages are announced. It aims at level AA of the accessibility rules (WCAG 2.2, and its French counterpart RGAA 4.1.2).
On macOS, replace Ctrl with Cmd (⌘).
Shortcuts
Files and views
| Shortcut | Action |
|---|---|
Ctrl+S | Save the file |
Ctrl+P | Go to a file by its name |
Ctrl+Shift+P or F1 | Command palette |
Ctrl+\ | Split the editor into two panes |
Ctrl+Shift+X | Show Extensions panel |
Ctrl+J | Collapse or expand the bottom panel |
F11 | Full screen |
Writing
| Shortcut | Action |
|---|---|
Ctrl+Z, Ctrl+Y (or Ctrl+Shift+Z) | Undo, redo |
Ctrl+X, Ctrl+C, Ctrl+V | Cut, copy, paste |
Ctrl+/ | Comment or uncomment |
Tab, Shift+Tab | Indent, unindent |
Ctrl+F, Ctrl+H | Find, replace in the file |
Ctrl+Shift+F, Ctrl+Shift+H | Find, replace in the project |
Shift+Alt+F (or Ctrl+Shift+I) | Format the code |
Running
| Shortcut | Action |
|---|---|
Ctrl+Enter | Run the file on screen |
Ctrl+C in a console | Interrupt the program |
Ctrl+D in an input | End of input (EOFError) |
↑, ↓, Tab in a console or the terminal | History, completion |
Ctrl+Enter in the commit message | Commit |
All the other actions are in the command palette, which also shows their shortcuts.
Moving around the interface
- Skip links: at the very beginning of the page,
Tabshows links to go straight to the editor, the side panel or the console. Tabgoes from one area to the next; inside an area, the arrow keys move between items:- activity bar:
↑↓,Enterto show the view; - file tree and outline:
↑↓,→opens a folder,←closes it,Enteropens the file,F2renames,Deletedeletes; - tabs:
←→,HomeEnd,Entershows,Deletecloses;Ctrl+Shift+←/→move the tab,Ctrl+Alt+←/→send it to the other pane; - menus:
↓opens, the arrows go through the items (→enters a submenu,←exits it),Esccloses.
- activity bar:
- The borders between areas (side panel, editors, bottom panel) take focus: the arrow keys move them,
Enterrestores the default size. Esccloses the open window or menu; focus goes back where it was.
Leaving the editor
In the editor, Tab indents the code instead of moving on. To leave it with the keyboard:
- press
Esc, thenTab; - or
Ctrl+Mswitches theTabkey between "indent" and "move to the next item".
The input fields of the consoles and the terminal work the same way: Esc, then Tab.
Resolving conflicts with the keyboard
During a Git merge, the buttons above the conflict blocks are for the mouse. With the keyboard, use the palette commands: "Conflict: keep the current version", "… the incoming version", "… both versions", "Conflict: go to the next one", "… the previous one". See Git.
Reading comfort
- Light or dark theme, contrasts checked in both (Customizing the display).
- The browser zoom (
Ctrl+/Ctrl-) enlarges the whole interface. - Drag and drop always has another way: a palette command, a shortcut or a terminal command.
An accessibility barrier? Report it with Help › About › Report an issue.