Arduino IDE is the free, open-source editor from Arduino for writing code and uploading it to Arduino boards and compatible microcontrollers such as the Uno, Nano, Mega, ESP32 and ESP8266. A sketch is an Arduino program: it has a setup function that runs once when the board starts and a loop function that runs again and again until the power is off. Most Arduino work is a short loop of its own — write a few lines, press Verify to check them, press Upload to send them to the board, then watch the Serial Monitor to see what the board sends back.
This complete list explains every shortcut in plain words, so you know not just which keys to press but what each one actually does. Every shortcut here was checked against more than one source, and the classic keys appear in the Arduino Forum cheat sheet, the Tutorial Tactic list, the IDE cheat sheet and the Arduino For Dummies cheat sheet, all agreeing with each other. Windows and Linux share the same keys for almost every command, while macOS uses Command in place of Control, so this post gives both. The current release is Arduino IDE 2.3.11, released on 12 November 2026, and the classic 1.8.19 branch is now the final legacy release.
How to Use Arduino IDE Shortcuts
Three shortcuts unlock almost everything in Arduino IDE. Press Control plus R to verify a sketch, which compiles the code and checks it for errors without sending anything to the board. Press Control plus U to upload the sketch, which verifies it first and then writes it to the board over USB. Press Control plus Shift plus M to open the Serial Monitor, where the board prints messages back to you while it runs. Verify, upload, watch the monitor: that is the rhythm of nearly every Arduino session.
Second, remember that Arduino IDE 2 is a different editor from the classic 1.8 version, and one key changed its job completely. In IDE 1.x, Control plus Shift plus P opened Page Setup. In IDE 2.x, the same key opens the Command Palette, a search box that runs any command by name. If you learned Arduino on the old IDE, that is the one surprise to expect. Third, the editor in IDE 2.x behaves like a modern code editor, so it has the extras you would expect there: a command palette, hover help, parameter hints and more than one cursor at once. Those extras are in their own table near the end of this post.
Top Arduino IDE Shortcuts
These are the shortcuts Arduino users reach for most often.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + R | Command + R | verify the sketch by compiling it without uploading |
| Ctrl + U | Command + U | upload the sketch to the connected board |
| Ctrl + Shift + M | Command + Shift + M | open the Serial Monitor to read the board |
| Ctrl + S | Command + S | save the current sketch |
| Ctrl + T | Command + T | auto format the code with tidy alignment and spacing |
| Ctrl + / | Command + / | comment out or uncomment the selected lines |
| Ctrl + F | Command + F | find text in the current sketch |
| Ctrl + Shift + P | Command + Shift + P | open the Command Palette in IDE 2.x, Page Setup in IDE 1.x |
File and Sketch Shortcuts
File shortcuts open, save and close sketches, and sketch shortcuts reach the sketch folder and the IDE settings. A sketch is saved as a folder with the same name as the sketch, and the main file inside it ends in .ino. Control plus N opens a new sketch with the familiar empty setup and loop functions already typed for you, so you never start from a blank page. Control plus O opens a sketch you saved before, and Control plus Shift plus S saves the open sketch under a new name, which is the quick way to keep a working version before you try a risky change.
Control plus K opens the sketch folder on your computer, which is where you put extra files, libraries and data the sketch needs. Control plus comma opens Preferences, where you set the editor font size, the board manager URLs and whether the IDE verifies code after upload. Control plus W closes the current sketch window, and Control plus Q quits the whole IDE. Control plus P prints the sketch, and Control plus Shift plus P opens Page Setup in the classic IDE — but remember that in IDE 2.x the same key opens the Command Palette instead, so Page Setup is reached from the File menu there.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + N | Command + N | open a new sketch with empty setup and loop functions |
| Ctrl + O | Command + O | open a sketch you saved before |
| Ctrl + S | Command + S | save the current sketch |
| Ctrl + Shift + S | Command + Shift + S | save the sketch under a new name |
| Ctrl + W | Command + W | close the current sketch window |
| Ctrl + P | Command + P | print the current sketch |
| Ctrl + Shift + P | Command + Shift + P | open Page Setup in IDE 1.x, Command Palette in IDE 2.x |
| Ctrl + K | Command + K | open the sketch folder on your computer |
| Ctrl + , | Command + , | open Preferences and IDE settings |
| Ctrl + Q | Command + Q | quit the Arduino IDE |
Verify and Upload Shortcuts
Verify and upload are the two keys that move code from your screen onto a board. Verify compiles the sketch and reports errors in the black output panel at the bottom of the window, but it does not touch the board, so it is safe to press as often as you like. Upload verifies first and then writes the finished program into the board memory over USB. On classic boards the IDE briefly resets the board so its bootloader is listening when the new code arrives, which is why the board restarts and setup runs again after every upload.
Upload Using Programmer skips the bootloader and writes the code straight through a hardware programmer such as a USBasp or an AVRISP mkII, which is how you program a bare chip or a board whose bootloader is missing. Export Compiled Binary saves the compiled .hex file next to your sketch instead of uploading it, so you can share the finished firmware or upload it later with another tool. If an upload fails, check two things before anything else: the right board is picked in the board selector, and the right port is picked beside it, because a sketch compiled for an Uno will not upload to an ESP32 and a busy port will refuse the connection.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + R | Command + R | verify the sketch by compiling it without uploading |
| Ctrl + U | Command + U | upload the sketch to the connected board |
| Ctrl + Shift + U | Command + Shift + U | upload using a hardware programmer, skipping the bootloader |
| Ctrl + Alt + S | Command + Option + S | export the compiled binary file next to the sketch |
Editing Shortcuts
Editing shortcuts are the ordinary text keys every computer user knows, plus two that belong to Arduino alone. Control plus T auto formats the sketch, fixing the alignment and spacing so nested blocks are easy to read, and it uses the standard two-space Arduino code style. Control plus forward slash comments out the selected lines or brings them back, which is the fastest way to switch a block of code off while you test something else, because commented code is not uploaded to the board. Tab moves the selected lines one indent deeper and Shift plus Tab moves them back, which keeps if statements and loops lined up the way they should be.
Undo is Control plus Z and redo is Control plus Shift plus Z in the classic lists, and IDE 2.x also accepts Control plus Y for redo because its editor is built on the same engine as VS Code. Control plus C copies, Control plus X cuts, Control plus V pastes and Control plus A selects everything in the current sketch. One habit worth building is to press Control plus T before every verify: tidy code is easier to read, and a misplaced brace is much easier to spot when the indentation is right.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + C | Command + C | copy the selected code |
| Ctrl + X | Command + X | cut the selected code |
| Ctrl + V | Command + V | paste the copied or cut code |
| Ctrl + Z | Command + Z | undo the last change to the code |
| Ctrl + Shift + Z | Command + Shift + Z | redo the change you just undid |
| Ctrl + A | Command + A | select all the code in the current sketch |
| Ctrl + / | Command + / | comment out or uncomment the selected lines |
| Ctrl + T | Command + T | auto format the code with tidy alignment and spacing |
| Tab | Tab | increase the indent of the selected lines |
| Shift + Tab | Shift + Tab | decrease the indent of the selected lines |
Find and Go To Shortcuts
Find shortcuts search your code and the Arduino reference without leaving the editor. Control plus F opens the find box for the current sketch, Control plus G jumps to the next match and Control plus Shift plus G jumps to the previous one. Control plus L jumps to a line number you type, which is handy when the compiler reports an error on a particular line and you want to land on it at once. Control plus Shift plus F is the one that surprises new users: it does not search your files, it opens the Arduino reference page for the word under the cursor, so selecting pinMode and pressing it shows you the pinMode documentation.
That reference lookup is worth using whenever a function behaves oddly, because the reference page shows the exact arguments a function takes and what it returns. A common example is digitalWrite, which needs a pin number and HIGH or LOW, and the reference page says so in one glance. Keep in mind that IDE 2.x also offers the usual modern editor search from the Command Palette, so if you want to search across every file in a sketch, open the palette with Control plus Shift plus P and type the search command there.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + F | Command + F | find text in the current sketch |
| Ctrl + G | Command + G | jump to the next match of the search |
| Ctrl + Shift + G | Command + Shift + G | jump to the previous match of the search |
| Ctrl + L | Command + L | go to a line number you type |
| Ctrl + Shift + F | Command + Shift + F | open the reference page for the selected code |
Serial Monitor and Plotter Shortcuts
The Serial Monitor is the two-way text link between your computer and a running board, and it is the main debugging tool for most Arduino users. Your sketch starts the link with Serial.begin(9600), and Serial.println sends text back while the board runs. The monitor opens the same port and shows what arrives, and you can also type in the top box to send text to the board. The baud rate in the monitor must match the number in Serial.begin, or the text comes out as garbage characters, which is the most common Serial Monitor mistake of all.
The Serial Plotter reads numbers separated by commas and draws them as live graphs, which is ideal for watching a sensor value rise and fall over time. In IDE 2.x the monitor sits in a panel at the bottom of the window, and it briefly releases the port during uploads so the upload can use it. If the monitor shows nothing, check that the sketch actually prints, that the baud rate matches, and that the right port is selected, in that order.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Shift + M | Command + Shift + M | open the Serial Monitor to read the board |
| Ctrl + Shift + L | Command + Shift + L | open the Serial Plotter to graph numbers live |
Arduino IDE 2 Shortcuts
Arduino IDE 2 is built on Eclipse Theia, so it behaves like a modern code editor, with a language server that offers autocompletion, go-to-definition, hover help and live error highlighting. The Command Palette is the front door to all of it: press Control plus Shift plus P, type a few letters of the command you want, and press Enter. The full list of shortcuts is itself one command away, under File, Advanced, Keyboard Shortcuts, or by pressing Alt plus Control plus comma.
Font size has its own keys in IDE 2.x: Control plus equals makes the editor text bigger and Control plus minus makes it smaller, and holding Control and turning the mouse wheel does the same thing. F11 switches the IDE to full screen on Windows and Linux; on a Mac the key is Control plus Command plus F. While you type, Control plus Shift plus Space shows the parameter hints for the function under the cursor, and Control plus K followed by Control plus I shows a hover box with documentation for it. To edit in two places at once, hold Alt plus Shift and drag with the mouse to drop extra cursors, or hold Control plus Alt plus Shift and use the arrow keys to add cursors from the keyboard alone.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Shift + P | Command + Shift + P | open the Command Palette and run any command by name |
| Alt + Ctrl + , | Option + Command + , | open the list of all keyboard shortcuts |
| Ctrl + = | Command + = | increase the editor font size |
| Ctrl + - | Command + - | decrease the editor font size |
| F11 | Ctrl + Command + F | toggle full screen mode |
| Ctrl + Shift + Space | Command + Shift + Space | show parameter hints for the function at the cursor |
| Ctrl + K, Ctrl + I | Command + K, Command + I | show hover documentation for the code at the cursor |
| Alt + Shift + drag | Option + Shift + drag | place extra cursors with the mouse for multi-cursor editing |
| Ctrl + Alt + Shift + arrows | Command + Option + Shift + arrows | add extra cursors from the keyboard alone |
Customise Your Shortcuts
Every shortcut in Arduino IDE 2.x can be changed. Open File, then Advanced, then Keyboard Shortcuts, and a searchable list of every command appears with its current key beside it. Type the name of the command you want to change, click the pencil icon next to it, and press the new key combination. The IDE stores your changes in a file called keymaps.json inside the .arduinoIDE folder in your home directory, on Windows under your user folder, on Linux and macOS under your home folder, so your custom keys survive updates and can be copied to another computer by copying that one file.
The same Advanced menu holds the advanced settings, which live in a file called settings.json in the same folder. One setting worth knowing is the interface scale: the font size shortcuts only behave as expected when automatic interface scaling is set the way you want it, because the editor font and the interface font scale together. If a shortcut you set does nothing, check first that another command is not already using the same key, because the IDE keeps the first match and quietly ignores the second. A sensible rule is to change as little as possible: keep the built-in keys for Verify, Upload and the Serial Monitor, and only rebind the keys you press every day and keep getting wrong.
Tips for Faster Arduino Work
Verify early and verify often. Press Control plus R after every small change instead of writing fifty lines and then hunting for the one mistake, because the compiler reports the first error it finds and a short sketch has fewer places to hide it. Keep the Serial Monitor open while you test, and print the value of every variable you are unsure about, because a board cannot show you a mistake you never look at. Auto format before every verify, so a missing brace shows up as wrong indentation before the compiler complains about it.
Learn the three-key rhythm first — Verify, Upload, Serial Monitor — and add the rest one at a time as you need them. Comment out code with Control plus forward slash instead of deleting it, so you can bring a working version back in one keystroke. Save a copy with Control plus Shift plus S before a big change, and use the reference lookup, Control plus Shift plus F, whenever a function surprises you. Finally, if you move between the classic IDE and IDE 2.x, remember the one key that changed: Control plus Shift plus P is Page Setup in the old IDE and the Command Palette in the new one, and the Command Palette is the faster of the two once you get used to it.
Frequently Asked Questions
What is the latest version of Arduino IDE?
Arduino IDE 2.3.11, released on 12 November 2026, is the latest release. The classic 1.8.19 branch is the final legacy release and is kept for security fixes only, so new users should install IDE 2.x from the Arduino software page.
What does Ctrl + R do in Arduino IDE?
Control plus R verifies the sketch: it compiles the code and reports errors in the output panel without sending anything to the board. It is the safe key to press as often as you like while you write code.
What does Ctrl + U do in Arduino IDE?
Control plus U uploads the sketch to the connected board. It verifies the code first, then writes it into the board memory over USB, and the board restarts and runs the new code.
How do I open the Serial Monitor with the keyboard?
Press Control plus Shift plus M on Windows or Linux, or Command plus Shift plus M on a Mac. The baud rate in the monitor must match the number in Serial.begin in your sketch, or the text will come out as garbage characters.
Why does Ctrl + Shift + P open the Command Palette instead of Page Setup?
Because the shortcut changed between versions. In the classic IDE 1.x it opened Page Setup, but in IDE 2.x the same key opens the Command Palette, which runs any command by name. In IDE 2.x, Page Setup is reached from the File menu.
How do I comment out code in Arduino IDE?
Select the lines and press Control plus forward slash on Windows or Linux, or Command plus forward slash on a Mac. Pressing the same keys again brings the lines back, so it is the fastest way to switch a block of code off while you test.
Can I change the keyboard shortcuts in Arduino IDE?
Yes, in IDE 2.x. Open File, then Advanced, then Keyboard Shortcuts, find the command, click the pencil icon and press the new key combination. Your changes are stored in keymaps.json inside the .arduinoIDE folder in your home directory.
By Umar Farooq, Tech Know.


0 Comments