Hello,
and welcome to the forum!
Great to have you here!
Good question!
You can see the shortcuts in the menus of the processing IDE / Editor
Let me mention this first.
Productivity
In general, what gives you productivity?
- Using Keyboard shortcuts is one aspect
- Learn to type with 10 fingers really
- be familiar with reference and example section (online and offline)
- Use libraries like PeasyCam and G4P - don’t reinvent the wheel
- have a couple of “Empty Sketches” ready, so you can just load them as a starting point. They are not really empty, but they contain stuff you usually need, like
setup()
anddraw()
. Or more advanced, setup, draw, a splash screen and a help screen and a headline and a status bar (Status bar - Wikipedia). They even can have multiple tabs. Examples: 2D or 3D, one with setup and draw, one with setup, draw, mousePressed, keyPressed, one with a full State System in draw(), mousePressed() and keyPressed(), one with a full 3D-stage and camera movement (see https://www.youtube.com/watch?v=unx6p_n7W90 where the castle is on the stage but the stage with sky and clouds is an empty sketch I use as a starting point to implement something on the stage). - Use something like AutoHotkey (AHK), see AutoHotkey - Wikipedia ; you could store fancy functions there with short cuts
But I will list a few common short-cuts here.
In the IDE / Editor
There is the normal editor stuff like
- ctrl-c, ctrl-v, ctrl-x, ctrl-a…
- cursor and
- ctrl-cursor left, ctrl-cursor right ctrl-cursor Up, ctrl-cursor Down…
- Pos1 and End
- ctrl-Pos1 and ctrl-End
- Tab
- Right mouse click for local menu
Then the normal program stuff like
- Enter Menu with Alt-f, Alt-d etc. and maneuver with cursor or letters (like p for paste when in Menu Edit)
- ctrl-n, ctrl-p, ctrl-s, ctrl-o (New, print, save, open)
- ctrl-f Find
and then cool special stuff like
- ctrl-t auto-format and auto-indent (I love it)
- ctrl-r RUN
- ctrl-Shift-F get offline reference for the selected command (nice!)
- ctrl-k open the Sketch Folder: which is nice, when you want to look at the images of the Sketch etc.
- ctrl-shift-N New tab (tabs are cool anyway)
In a running Sketch
In a running Sketch :
- Escape : stop Sketch (Alt-F4 in Windows)
In the forum
when you hover the mouse over the buttons in the small command bar, short-cuts are displayed such as
- ctrl-b, ctrl-i, ctrl-Shift-C
Mouse in the IDE/Editor
- Click : Place cursor
- Double-Click : select Word
- Triple-Click : select Paragraph (or line)
- Drag : select passage
Remark
For a list of Editor / IDE commands see https://www.processing.org/reference/environment/#PDE
Chrisir