Arduino Sketch Keyboard Shortcuts

You should include keyboard shortcuts in the next version of the arduino sketch program.
I would love to be able to upload the sketch to the arduino with one quick tap of the f9 key.
regards,
--rtty

is CTRL-U too long? :wink:

robtillaart:
is CTRL-U too long? :wink:

Where did you find that one, is there more of these usefull keyboard shortcuts?

Cheers,
Kari

EDIT. Ok, there it is, in the place I wouldn't look normally, File-menu...

Thank you! Ctrl-U it is!

Where did you find that one, is there more of these usefull keyboard shortcuts?

Just go through the menu's of the IDE they are mentioned after the function like many windows progs.

Here's a little cheat-sheet of useful Arduino keyboard shortcuts: (for Windows)

Ctrl + R Verify
Ctrl + U Upload
Ctrl + Shift + M Serial Monitor
3 Likes

Ctrl - T :o :o :o

Man am I glad I did a search. I was going to ask something similar. Thanks for beating me to it!!!
IDE Shortcuts? Now I'm going to have to start paying attention to the menu keys on my usual programs. I might learn something new. An easier way to do things. Imagine that!!!

I never thought I'd say it about keyboard shortcuts but you guys are my hero!!!! Thanks!

There's an undocumented keyboard shortcut that julyjim discovered:

julyjim:
using " ctrl + { " will move mouse cursor from one bracket ("{ } ") to the corresponding one

Also I should note that it works for any type of bracket, not only curly.

If anyone discovers more undocumented shortcuts please do share.

1 Like

And one NOT documented anywhere I can find:

Ctrl+D

deletes the current line. You don't have to highlight anything.

I wish there was one like this for Cut. Yes, I know there is Ctrl+X and Ctrl+V but you have to select the entire line to make this happen.

Ctrl+D does not require this and that's what I would like to have a Cut of the whole line function work like. There was one in VB6. Ctrl+Y did it. Cut the entire line, no highlighting needed, then you could paste is somewhere else. Nice shortcut to have for rearranging code.

Mike

There's a new shortcut added in Arduino IDE 1.8.4: ctrl+mouse wheel changes the editor font size.

pert:
There's a new shortcut added in Arduino IDE 1.8.4: ctrl+mouse wheel changes the editor font size.

THAT will make that version worth downloading. Back in a minute...

MikeyMoMo:
And one NOT documented anywhere I can find:

Ctrl+D

deletes the current line. You don't have to highlight anything.

I wish there was one like this for Cut. Yes, I know there is Ctrl+X and Ctrl+V but you have to select the entire line to make this happen. ~

Mike

Maybe it's to late, but I just saw this thread.
If you press "shift" + "end" you can select the whole line. Then use your regular command and you are done.

Hello,

are there some shortcuts to make the code folding easier? (like fold/unfold this, fold/unfold all)

Here's a shortcut keys for Arduino sketch: (for Windows)

ctrl + N New Sketch

ctrl + O Open existing Sketch

ctrl + S Save Sketch

ctrl + R Compile and verify Sketch

ctrl + T Auto format

ctrl + Z Undo last change

ctrl + shift + Z Redo last change

ctrl + shift + M Open Serial monitor

ctrl + / Comment/Uncomment

ctrl + shift + F Find reference page for for selected code

ctrl + K Open Sketch folder

Ctrl + Enter autocompletes with the last matching variable name:
https://forum.arduino.cc/index.php?topic=599911.msg4522499#msg4522499