Skip to content

CLion

Comprehensive CLion shortcuts and workflows for C/C++ development with CMake, debugging, and embedded systems.

General Shortcuts

Windows/LinuxmacOSDescription
Ctrl+Shift+ACmd+Shift+AFind Action
Ctrl+Shift+NCmd+Shift+OGo to File
Ctrl+NCmd+OGo to Class
Ctrl+Shift+Alt+NCmd+Option+OGo to Symbol
Ctrl+ECmd+ERecent Files
Ctrl+Shift+ECmd+Shift+ERecent Locations
Ctrl+GCmd+LGo to Line
Ctrl+F12Cmd+F12File Structure
Alt+F1Option+F1Select In
Windows/LinuxmacOSDescription
Ctrl+BCmd+BGo to Declaration
Ctrl+Alt+BCmd+Option+BGo to Implementation
Ctrl+Shift+BCmd+Shift+BGo to Type Declaration
Ctrl+UCmd+UGo to Super Method
Alt+F7Option+F7Find Usages
Ctrl+F7Cmd+F7Find Usages in File
Ctrl+Shift+F7Cmd+Shift+F7Highlight Usages
Ctrl+Alt+F7Cmd+Option+F7Show Usages
Ctrl+ClickCmd+ClickGo to Declaration

C/C++ Specific Features

Windows/LinuxmacOSDescription
Ctrl+Shift+F10Ctrl+Shift+RRun Configuration
Alt+Shift+F10Option+Shift+RRun Target
Ctrl+Shift+ICmd+Shift+IInclude File
Ctrl+Alt+Shift+TCmd+Option+Shift+TRefactor This
F2F2Next Highlighted Error
Shift+F2Shift+F2Previous Highlighted Error

CMake Integration

Windows/LinuxmacOSDescription
Ctrl+Shift+ACmd+Shift+ACMake Actions
Ctrl+F9Cmd+F9Build Project
Ctrl+Shift+F9Cmd+Shift+F9Rebuild Project
Ctrl+Alt+F9Cmd+Option+F9Clean Project

Debugging

Windows/LinuxmacOSDescription
Shift+F9Ctrl+DDebug
F8F8Step Over
F7F7Step Into
Shift+F8Shift+F8Step Out
Alt+F9Option+F9Run to Cursor
Alt+F8Option+F8Evaluate Expression
Ctrl+F8Cmd+F8Toggle Breakpoint
Ctrl+Shift+F8Cmd+Shift+F8View Breakpoints