Eclipse is an open-source development environment that supports multiple programming languages. More and more microcontroller manufacturers are using the IDE to provide a free development environment with a pre-installed toolchain. Examples include STM32CubeIDE, Simplicity Studio, and others.

Eclipse offers keyboard shortcuts for common use cases that can make development much easier. This blog summarizes the most important shortcuts. It is primarily aimed at embedded software developers who use the C programming language. To display all shortcuts in Eclipse, you can use the keyboard shortcut Ctrl + Shift + L This article is not case sensitive. You do not need to worry about the fact that, for example, the previous command uses a capital letter L is entered.
directory
Edit
Edit text
| command | keyboard shortcut |
|---|---|
| Save | Ctrl + S |
| Save all changes | Ctrl + Shift + S |
| Undo | Ctrl + Z |
| Repeat | Ctrl + Y |
| Copy | Ctrl + C |
| Insert | Ctrl + V |
| Cut out | Ctrl + X |
| Select all | Ctrl + A |
| Select element | Shift + Old + ⇧ |
| Skip an element | Ctrl + ⇦ / ⇨ |
| Scroll up or scroll down | Ctrl + ⇧ / ⇩ |
| Jump to bracket start or end | Ctrl + Shift + P |
| Copy the selected line to the next line | Ctrl + Old + ⇩ |
| Copy the selected line to the previous line | Ctrl + Old + ⇧ |
| Move the selected row to the next row | Old + ⇩ |
| Move the selected row to the previous row | Old + ⇧ |
| Delete the selected row | Ctrl + D |
| Delete from cursor position to end of line | Ctrl + Shift + Delete |
| Delete the next element | Ctrl + Delete |
| Delete the previous item | Ctrl + Backspace |
| Insert a blank line before the selected line | Ctrl + Shift + Enter ↲ |
| Insert a blank row after the selected row | Shift + Enter ↲ |
| Merge the selected and next row | Ctrl + Shift + J |
Edit code
This section will show commands specifically for code editing. Of course, the previous chapter also applies to this.
| command | keyboard shortcut |
|---|---|
| Jump to declaration | F3 |
| Quickfix | Ctrl + 1 |
| Complete code using the wizard | Ctrl + Spaces |
| Show all variables and functions of the current unit | Ctrl + O |
| Automatic formatting of the source code | Ctrl + Shift + F |
| Automatic adjustment of indentation (e.g. formats tabs and spaces) | Ctrl + I |
| Maximize the editor | Ctrl + M |
| Insert line break at the end of the line | Shift + Enter ↲ |
| Comment / Undo comment | Ctrl + / |
| Comment / Undo comment with block comment | Ctrl + Shift + / |
Navigate
| command | keyboard shortcut |
|---|---|
| Jump to line | Ctrl + L |
| Jump to previous/next function | Ctrl + Shift + ⇧ / ⇩ |
| Open a dialog with the currently open editors | Ctrl + E |
| Go to the last opened editor | Ctrl + ⇦ |
| Go to the previously opened editor | Ctrl + ⇨ |
| Go to the last code change | Ctrl + Q |
| Go to the previous tab editor | Ctrl + Image▲ |
| Go to the next tab editor | Ctrl + Image▼ |
| Switch between views | Ctrl + F7 |
| Switch between *.c and corresponding *.h file | Ctrl + tab |
| Close the current window | Ctrl + W |
| Close all windows | Ctrl + Shift + W |
| Split window horizontally | Ctrl + Shift + – |
| Switch between perspectives | Ctrl + F8 |
Restructure
| command | keyboard shortcut |
|---|---|
| Rename function or variable globally | Old + Shift + R |
| Rename function or variable locally | Ctrl + 2 |
| Open restructuring menu | Old + Shift + T |
| Automatically organize includes | Ctrl + Shift + O |
Search and Replace
| command | keyboard shortcut |
|---|---|
| Open Search and Replace | Ctrl + F |
| Jump to the next found element | Ctrl + K |
| Jump to the previous found element | Ctrl + Shift + K |
| Open C/C++ search | Ctrl + H |
| Quick search of the selected element in the local unit | Ctrl + G |
| Quick search of the selected item in the workspace | Ctrl + Old + H |
Debug
| command | keyboard shortcut |
|---|---|
| Build all projects in the workspace | Ctrl + B |
| Start debugging | F11 |
| Set or reset breakpoint | Ctrl + B |
| Skip all breakpoints | Ctrl + Old + B |
| Step Into | F5 |
| Step Over | F6 |
| Step Return | F7 |
| Start | F8 |
| Cancel debugging | Ctrl + F2 |
If you have any further questions or are missing a shortcut, please leave us a comment!
