QuPath would like you to be able to work easily with your images, and not get in your way.
Learning the shortcut keys for the tools and commands you use most frequently can help a lot to get things done quickly, and with less frustration.
The following shortcuts apply to the viewer. They are worth remembering, because they can be used very frequently when navigating and annotating images.
These shortcuts only work whenever the viewer is ‘in focus’, i.e. it is the last thing that was clicked. If a shortcut doesn’t seem to work, click on the viewer once to bring it into focus, then try the shortcut again.
The Alt key¶
- When the Move tool is selected, use the Alt key to click on multiple objects to select them.
- When the Brush or Wand tools are selected, use the Alt key to switch to ‘eraser’ mode when drawing.
The Shift key¶
- When the Brush or Wand tools are selected, use the Shift key to continue adding to an existing selected annotation (rather than creating a new one).
The following shortcuts are used to toggle on/off display elements in the viewer.
|Show/hide TMA grid||G|
|Show/hide counting grid||Shift + G|
|Fill/unfill annotations||Shift + F|
|Show/hide color channel||Numeric keys|
The following shortcuts trigger commands that can also be accessed within the QuPath menus.
Because the shortcuts are shown in the menus as well, only a small number of the most important are shown here to draw attention to them - subjectively ordered according to usefulness.
Main QuPath window¶
|Ctrl + S|
|Ctrl + R|
|Ctrl + L|
|Shift + C|
|Ctrl + Shift + L|
|Shift + D|
|Shift + E|
|Ctrl + Shift + A|
|Ctrl + Shift + R|
|Ctrl + Shift + D|
There is an additional shortcut that can be very helpful when typing code in the Script editor window: for any built-in function, start typing the name and then press Ctrl + space.
If the script editor can find the function you are aiming at, it should then auto-complete the name. If there are multiple options, press Ctrl + space repeatedly to cycle through them.
For example, starting to type
cells = getC
and pressing Ctrl + space should automatically produce
cells = getCellObjects
Pressing Ctrl + space again immediately would produce
cells = getColorRGB
Probably not what you want in this case, admittedly, but useful to know. Especially if, like me, you often do not quite remember the function name or capitalization used.