Keyboard shortcuts

Everything ChartCode can do from the keyboard. On a Mac, use Cmd wherever this page says Ctrl.

Anywhere in ChartCode

Works on any page, whether or not a chart is open.
KeysWhat it does
Ctrl+Shift+A Turns accessibility mode on and puts you in the chart's outline. Pressed again while you are in the outline, it turns the mode off. On a page with no chart it just switches the mode; on a course page it takes you into the activity that is open.

The outline — accessibility mode

The outline is the text view of your chart, listing the program line by line. These keys work while a line in it has focus. Press ? there at any time to have this list read out.

Moving around
KeysWhat it does
↑ ↓Move to the previous or next line.
→Open a loop or an if; press again to move inside it.
←Close it; or move back out to the line that contains this one.
Home EndJump to the first or last line.
SpaceShow this line on the chart, without leaving the outline.
Choosing where a new line goes
KeysWhat it does
APut the insertion point after this line.
BPut it before this line.
SPut it at the start of this loop, if, or else branch.
ISay where the insertion point is now.
Changing the program
KeysWhat it does
+ or Insert Add something at the insertion point, choosing from a list.
Enter or F2 Edit this line. On a for header, press again for each part in turn.
EAdd an else to this if.
Delete Remove this line. Press twice to confirm. On an else branch with nothing in it, one press takes the else off the if.
EscCall off a delete you have not confirmed.
M Read the memory: the call stack, each frame's variables, and what they refer to.
?Read out this list of keys.
In the add and edit dialogs
KeysWhat it does
↑ ↓Choose what to add.
EnterAdd it, or save the line you are editing.
EscCancel and go back to the outline.

Workbench

KeysWhat it does
Ctrl+Shift+RRun the program.
Ctrl+Shift+DStart debugging.
Ctrl+Shift+NStep forward.
Ctrl+Shift+PStep back.
Ctrl+Shift+FFocus mode: hide the menus and give the chart the whole window.
EscLeave focus mode.
Moving between charts in a program with functions or classes
KeysWhat it does
Ctrl+Shift+GOpen "go to chart" and type to filter.
Ctrl+Shift+JNext chart.
Ctrl+Shift+KPrevious chart.
Ctrl+Shift+0Go to the main chart.
Ctrl+Shift+1…9Go to the first through ninth function or method.
Inside the "go to chart" box
KeysWhat it does
↑ ↓Move through the list.
EnterOpen the one you are on.
0…9Jump straight to that chart, while the filter box is empty.
EscClose without moving.

Exercises and course activities

KeysWhat it does
Ctrl+Shift+RRun the program.
Ctrl+Shift+DStart debugging.
Ctrl+Shift+NStep forward.
Ctrl+Shift+PStep back.
Ctrl+Shift+←Previous exercise.
Ctrl+Shift+→Next exercise.
Ctrl+Shift+FFocus mode.
EscLeave focus mode.

On a course page, each activity sits in its own frame. Once you have tabbed into one, these keys belong to that activity. Ctrl+Shift+A pressed on the page itself takes you into the first activity that is open, and says which one.

Tutorials

KeysWhat it does
Ctrl+Shift+RRun the program.
Ctrl+Shift+DStart debugging.
Ctrl+Shift+NStep forward.
Ctrl+Shift+PStep back.
Ctrl+Shift+←Previous lesson.
Ctrl+Shift+→Next lesson.
Ctrl+Shift+HOpen Quick Help.
Ctrl+Shift+FFocus mode.
EscClose Quick Help, or leave focus mode.

Course page

KeysWhat it does
TabMove to the next activity heading, or into an activity that is open.
Enter or Space Open or close the activity you are on.