CLion is the C and C++ IDE from JetBrains, built for native, embedded and cross-platform development. It understands CMake, Makefile and compilation database projects, and it puts the editor, the debugger, the CMake tool window and the terminal in one window. Almost every action in CLion has a keyboard shortcut, from building the project to stepping through code in the debugger, and learning them is the fastest way to stop reaching for the mouse while you work in C and C++.
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 JetBrains' own published shortcut reference. One note first: CLion uses the same default keymap as the other JetBrains IDEs, so developers coming from IntelliJ IDEA or PyCharm will find most shortcuts familiar, but the build, run and C++ navigation actions are CLion's own. This post uses the default keymap on Windows and Linux, and the default macOS keymap on a Mac. The current release is CLion 2026.3, released in November 2026.
How to Use CLion ShortcutsStart with the five keys that save the most time: Double Shift for Search Everywhere, Ctrl plus Shift plus A for Find Action, Alt plus Enter for context actions, Shift plus F10 to run, and F9 to debug. Use those five for a week, then add Ctrl plus Shift plus F to find in files, Alt plus F7 to find usages, and Shift plus F6 to rename. Second, learn the two CLion keys that differ from other JetBrains IDEs: debug is F9 here, not Shift plus F9, and Go to Class is Ctrl plus N on Windows but Command plus O on a Mac. Third, the same key can do different things in different places: F9 starts debugging when the program is stopped, and resumes it when the debugger is paused. Finally, every menu entry shows its shortcut next to it, so use the key next time instead of the mouse.
CLion's Top Keyboard Shortcuts
The shortcuts JetBrains itself lists as the most useful to learn first.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Double Shift | Double Shift | Search Everywhere: search files, actions and settings |
| Ctrl + Shift + A | Command + Shift + A | Find Action: find any command by name |
| Double Ctrl | Double Control | Run Anything: run a command, console or configuration |
| Alt + Enter | Option + Enter | Show Context Actions: show quick fixes at the caret |
| F2 | F2 | Navigate to Next Code Issue: jump to the next error |
| Shift + F2 | Shift + F2 | Navigate to Previous Code Issue: jump to the previous error |
| Ctrl + E | Command + E | View Recent Files: show recently opened files |
| Ctrl + W | Option + Up | Extend Selection: grow the selection one code level |
| Ctrl + Shift + W | Option + Down | Shrink Selection: shrink the selection one level |
| Ctrl + / | Command + / | Add/Remove Line Comment: comment the line with // |
| Alt + F7 | Option + F7 | Find Usages: find all uses of a code element |
Build, Run and Debug Shortcuts
Build, run and debug shortcuts start the program, step through it line by line, and manage breakpoints. In CLion, Run is Shift plus F10 and Debug is F9.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + F9 | Command + F9 | Build Project: build the whole project |
| Shift + F10 | Control + R | Run context configuration: run the current configuration |
| Alt + Shift + F10 | Control + Option + R | Run: choose a configuration and run it |
| F9 | Control + D | Debug context configuration: debug the current configuration |
| Alt + Shift + F9 | Control + Option + D | Debug: choose a configuration and debug it |
| Ctrl + F2 | Command + F2 | Stop: stop the running program |
| F9 | Command + Option + R | Resume Program: resume the paused program |
| F8 | F8 | Step Over: run the line without entering the call |
| F7 | F7 | Step Into: step into the function call |
| Shift + F8 | Shift + F8 | Step Out: finish the function and return |
| Alt + F9 | Option + F9 | Run To Cursor: run until the line at the caret |
| Alt + F8 | Option + F8 | Evaluate Expression: evaluate an expression while debugging |
| Ctrl + F8 | Command + F8 | Toggle Line Breakpoint: toggle a breakpoint on the line |
| Ctrl + Shift + F8 | Command + Shift + F8 | View Breakpoints: open the breakpoints list |
Basic Editing Shortcuts
Basic editing covers cut, copy, paste, save, undo and line operations.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + X | Command + X | Cut: cut the selection |
| Ctrl + C | Command + C | Copy: copy the selection |
| Ctrl + V | Command + V | Paste: paste from the clipboard |
| Ctrl + Shift + V | Command + Shift + V | Paste from History: paste an earlier clipboard entry |
| Ctrl + S | Command + S | Save All: save all open files |
| Ctrl + Z | Command + Z | Undo: undo the last change |
| Ctrl + Shift + Z | Command + Shift + Z | Redo: redo a change you undid |
| Ctrl + Enter | Command + Enter | Smart Line Split: split the line at the caret |
| Shift + Enter | Shift + Enter | Start New Line: start a new line below |
| Ctrl + Alt + Enter | Command + Option + Enter | Start New Line Before Current: start a new line above |
| Ctrl + Y | Command + Backspace | Delete Line: delete the whole current line |
| Ctrl + D | Command + D | Duplicate Line: duplicate the current line |
| Ctrl + F4 | Command + W | Close Active Editor Tab: close the current tab |
Caret Navigation Shortcuts
Caret shortcuts move the cursor without the mouse.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Left | Option + Left | Move Caret to Previous Word: move the caret one word left |
| Ctrl + Right | Option + Right | Move Caret to Next Word: move the caret one word right |
| Home | Command + Left | Move Caret to Line Start: move the caret to the line start |
| End | Command + Right | Move Caret to Line End: move the caret to the line end |
| Ctrl + Shift + M | Control + M | Move Caret to Matching Brace: jump to the matching brace |
| Ctrl + [ | Command + Option + [ | Move Caret to Code Block Start: jump to the block start |
| Ctrl + ] | Command + Option + ] | Move Caret to Code Block End: jump to the block end |
| Alt + Down | Control + Shift + Down | Next Method: move the caret to the next method |
| Alt + Up | Control + Shift + Up | Previous Method: move the caret to the previous method |
Select Text Shortcuts
Selection shortcuts are the caret shortcuts with Shift held down, plus two that grow or shrink the selection by one level at a time.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + A | Command + A | Select All: select everything in the file |
| Ctrl + Shift + Left | Option + Shift + Left | Move Caret to Previous Word with Selection: extend the selection one word left |
| Ctrl + Shift + Right | Option + Shift + Right | Move Caret to Next Word with Selection: extend the selection one word right |
| Shift + Home | Command + Shift + Left | Move Caret to Line Start with Selection: select to the line start |
| Shift + End | Command + Shift + Right | Move Caret to Line End with Selection: select to the line end |
| Ctrl + Shift + ] | Command + Option + Shift + ] | Move Caret to Code Block End with Selection: select to the block end |
| Ctrl + W | Option + Up | Extend Selection: grow the selection one code level |
| Ctrl + Shift + W | Option + Down | Shrink Selection: shrink the selection one level |
Code Folding Shortcuts
Folding hides blocks of code so a long file fits on one screen.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + NumPad Plus | Command + NumPad Plus | Expand: expand the folded block at the caret |
| Ctrl + NumPad Minus | Command + NumPad Minus | Collapse: collapse the block at the caret |
| Ctrl + Alt + NumPad Plus | Command + Option + NumPad Plus | Expand Recursively: expand the block and all inside it |
| Ctrl + Alt + NumPad Minus | Command + Option + NumPad Minus | Collapse Recursively: collapse the block and all inside it |
| Ctrl + Shift + NumPad Plus | Command + Shift + NumPad Plus | Expand All: expand every folded block |
| Ctrl + Shift + NumPad Minus | Command + Shift + NumPad Minus | Collapse All: collapse every block in the file |
| Ctrl + . | Command + . | Fold Selection: fold the selected code |
Multiple Carets and Selection Ranges
Multiple carets let you type the same edit in several places at once. Alt plus J selects the next occurrence of the word at the caret.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Shift + Click | Option + Shift + Click | Add/Remove Caret: add or remove a caret |
| Alt + Shift + Insert | Command + Shift + 8 | Toggle Column Selection Mode: switch column selection mode on or off |
| Double Ctrl + Up | Double Option + Up | Clone Caret Above: copy the caret to the line above |
| Double Ctrl + Down | Double Option + Down | Clone Caret Below: copy the caret to the line below |
| Alt + Shift + G | Option + Shift + G | Add Caret to Each Line in Selection: put a caret on every selected line |
| Alt + J | Control + G | Add Selection for Next Occurrence: select the next occurrence |
| Ctrl + Alt + Shift + J | Command + Control + G | Select All Occurrences: select every occurrence in the file |
Coding Assistance Shortcuts
Coding assistance is where CLion earns its keep: completion, intention actions, reformatting and commenting.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Enter | Option + Enter | Show Context Actions: show quick fixes at the caret |
| Ctrl + Space | Control + Space | Basic Completion: show code completion suggestions |
| Ctrl + Shift + Space | Control + Shift + Space | Smart Completion: complete with the expected type |
| Ctrl + Shift + Enter | Command + Shift + Enter | Complete Statement: finish the statement with brackets |
| Ctrl + Alt + L | Command + Option + L | Reformat Code: reformat the code to code style |
| Ctrl + Alt + O | Command + Option + O | Optimize Imports: clean up the include directives |
| Ctrl + P | Command + P | Parameter Info: show the parameters of the function |
| Ctrl + Q | F1 | Quick Documentation: show documentation for the symbol |
| Ctrl + O | Control + O | Override Functions: override base class functions |
| Ctrl + I | Control + I | Implement Functions: implement functions in the class |
| Ctrl + / | Command + / | Comment with Line Comment: comment the line with // |
| Ctrl + Shift + / | Command + Option + / | Comment with Block Comment: comment with a block comment |
Live Templates Shortcuts
Live templates insert ready-made code snippets, such as a for loop or a main function, with the caret placed where you type next.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + J | Command + J | Insert Live Template: insert a code template |
| Ctrl + Alt + J | Command + Option + J | Surround with Live Template: wrap the selection in a template |
Context Navigation Shortcuts
Context navigation jumps between files, classes, tabs and edit locations.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + G | Command + L | Go to Line: jump to a line number |
| Ctrl + N | Command + O | Go to Class: open a class by its name |
| Ctrl + Shift + N | Command + Shift + O | Go to File: open a file by typing its name |
| Ctrl + Alt + B | Command + Option + B | Go to Definition: go to the definition at the caret |
| Ctrl + H | Control + H | Type Hierarchy: show the type hierarchy |
| Ctrl + Alt + H | Control + Option + H | Call Hierarchy: show the call hierarchy |
| Ctrl + F12 | Command + F12 | File Structure: show the structure of the current file |
| Ctrl + Tab | Control + Tab | Switcher: switch between files and tool windows |
| Alt + F1 | Option + F1 | Select In: locate the file or symbol in a tool window |
| Ctrl + Shift + Backspace | Command + Shift + Backspace | Last Edit Location: jump back to the last edit |
| Ctrl + Alt + Left | Command + [ | Back: go back one navigation point |
| Ctrl + Alt + Right | Command + ] | Forward: go forward one navigation point |
Find Everything Shortcuts
Find searches inside one file, Find in Files searches the whole project, and Search Everywhere searches files, actions and settings together.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Double Shift | Double Shift | Search Everywhere: search files, actions and settings |
| Ctrl + F | Command + F | Find: find text in the current file |
| F3 | Command + G | Find Next / Move to Next Occurrence: go to the next match |
| Shift + F3 | Command + Shift + G | Find Previous / Move to Previous Occurrence: go to the previous match |
| Ctrl + R | Command + R | Replace: replace text in the current file |
| Ctrl + Shift + F | Command + Shift + F | Find in Files: find text across the project |
| Ctrl + Shift + R | Command + Shift + R | Replace in Files: replace text across the project |
| Ctrl + F7 | Command + F7 | Find Usages in File: find usages in the current file |
| Ctrl + F3 | Not assigned | Next Occurrence of the Word at Caret: go to the next same word |
| Ctrl + Shift + A | Command + Shift + A | Find Action: find any command by name |
Navigate from Symbols Shortcuts
Symbol navigation follows the code itself: from a use to its declaration, from a class to its definition, and from a method to the one it overrides.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + F7 | Option + F7 | Find Usages: find all uses of a code element |
| Ctrl + B | Command + B | Go to Declaration: go to the declaration at the caret |
| Ctrl + Alt + B | Command + Option + B | Go to Definition: go to the definition at the caret |
| Ctrl + Alt + F7 | Command + Option + F7 | Show Usages: show usages in a popup |
| Ctrl + Shift + F7 | Command + Shift + F7 | Highlight Usages in File: highlight every usage in the file |
| Ctrl + Alt + Shift + N | Command + Option + O | Go to Symbol: jump to a symbol by name |
| Ctrl + U | Command + U | Go to Super Method: go to the overridden base method |
Code Analysis Shortcuts
Code analysis shortcuts walk through the issues CLion's inspections find. F2 jumps to the next code issue, and Shift plus F2 goes back to the previous one.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Enter | Option + Enter | Show Context Actions: show quick fixes at the caret |
| Ctrl + F1 | Command + F1 | Error Description: show the error at the caret |
| F2 | F2 | Next Code Issue: jump to the next code issue |
| Shift + F2 | Shift + F2 | Previous Code Issue: jump to the previous code issue |
| Ctrl + Alt + Shift + I | Command + Option + Shift + I | Run Inspection by Name: run one inspection by name |
| Alt + 6 | Command + 6 | Show Problems window: show the Problems tool window |
Refactoring Shortcuts
Refactoring shortcuts change the structure of code without changing what it does. Rename is Shift plus F6.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Alt + Shift + T | Control + T | Refactor This: open the refactoring menu |
| Shift + F6 | Shift + F6 | Rename: rename the symbol everywhere |
| Ctrl + F6 | Command + F6 | Change Signature: change a function's signature |
| F6 | F6 | Move: move a function or type |
| Ctrl + Alt + M | Command + Option + M | Extract Function: turn the selection into a function |
| Ctrl + Alt + N | Command + Option + N | Inline: inline a variable or function |
| Alt + Delete | Command + Delete | Safe Delete: delete only if nothing uses it |
| Ctrl + Alt + V | Command + Option + V | Introduce Variable: turn the selection into a variable |
| Ctrl + Alt + P | Command + Option + P | Introduce Parameter: turn the selection into a parameter |
| Ctrl + Alt + C | Command + Option + C | Introduce Constant: turn the selection into a constant |
Global VCS Actions Shortcuts
Version control shortcuts commit, push and move between changes. The VCS Operations popup, Alt plus backtick on Windows, holds the rest of the Git commands.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + ` | Control + V | VCS Operations Popup: open the version control menu |
| Ctrl + K | Command + K | Commit: commit the current changes |
| Ctrl + T | Command + T | Update Project: update the project from version control |
| Ctrl + Alt + Z | Command + Option + Z | Rollback: roll back the selected changes |
| Ctrl + Shift + K | Command + Shift + K | Push: push the commits to the remote |
| Ctrl + Alt + Shift + Down | Control + Option + Shift + Down | Next Change: go to the next change |
| Ctrl + Alt + Shift + Up | Control + Option + Shift + Up | Previous Change: go to the previous change |
| Alt + 9 | Command + 9 | Show Version Control window: show the version control panel |
Differences Viewer Shortcuts
The differences viewer compares two versions of a file side by side. F7 moves to the next difference, and Ctrl plus Alt plus R accepts the left side. Ctrl plus D does double duty: it shows the diff and compares files.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + D | Command + D | Show Diff: show the differences for the file |
| F7 | F7 | Next Difference: go to the next difference |
| Shift + F7 | Shift + F7 | Previous Difference: go to the previous difference |
| Ctrl + Alt + R | Command + Control + Right | Accept Left Side: accept the left side |
| Ctrl + Alt + A | Command + Control + Left | Accept Right Side: accept the right side |
| Ctrl + Shift + Tab | Control + Shift + Tab | Select Opposite Diff Pane: switch focus to the other pane |
| Ctrl + Shift + D | Command + Shift + D | Show Diff Settings Popup: open the diff settings |
Tool Windows Shortcuts
Tool windows are the panels around the editor: Project, Find, Run, Debug and the rest. Alt plus a number opens one on Windows, Command plus the same number on a Mac.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + Escape | Shift + Escape | Hide Active Tool Window: hide the tool window in focus |
| Ctrl + Shift + F12 | Command + Shift + F12 | Hide All Tool Windows: hide every tool window |
| F12 | F12 | Jump to Last Tool Window: jump back to the last tool window |
| Alt + 1 | Command + 1 | Show Project window: show the Project tool window |
| Alt + 3 | Command + 3 | Show Find window: show the Find window |
| Alt + 4 | Command + 4 | Show Run window: show the Run window |
| Alt + 5 | Command + 5 | Show Debug window: show the Debug window |
| Alt + 7 | Command + 7 | Show Structure window: show the Structure window |
| Alt + 0 | Command + 0 | Show Commit window: show the Commit window |
| Alt + F12 | Option + F12 | Show Terminal window: show the built-in terminal |
How to Create Custom Shortcuts in CLion
CLion lets you change almost any shortcut, but the predefined keymaps cannot be edited directly. Open Settings with Ctrl plus Alt plus S, or Command plus comma on a Mac, and select Keymap. Search for the action by name, right-click it, and choose Add Keyboard Shortcut, then press the keys you want. CLion creates a copy of the predefined keymap with your change, so the original stays untouched. If the keys are already taken, CLion warns you and shows the conflicting action.
Tips for CLion Users
Learn shortcuts in small groups, starting with the five keys in the How to Use section, and add one group a week: building and debugging first, then navigation, then refactoring. Use Alt plus Enter on every warning CLion underlines: the context actions fix the problem or add the missing include in one keystroke. Build with Ctrl plus F9 before you run, so a compile error never hides behind a stale binary. Press Ctrl plus Shift plus F12 to hide all tool windows when you want the whole screen for code, and use Ctrl plus Alt plus H to see who calls a function before you change it.
Frequently Asked Questions
What is CLion used for?
CLion is JetBrains' IDE for C and C++ development, including native, embedded and cross-platform projects. It works with CMake, Makefile and compilation database projects, and it runs on Windows, macOS and Linux with a built-in debugger and test runner.
What is the shortcut to run a program in CLion?
Press Shift plus F10 on Windows and Linux, or Control plus R on a Mac, to run the current configuration. Press Alt plus Shift plus F10 to choose a different configuration first. To debug instead, press F9 on Windows and Linux, or Control plus D on a Mac.
How do I build a project in CLion?
Press Ctrl plus F9 on Windows and Linux, or Command plus F9 on a Mac, to build the whole project. The build output appears in the Build tool window, and any errors are listed with links to the exact lines.
How do I go to a class or file in CLion?
Press Ctrl plus N on Windows and Linux to go to a class by name, or Ctrl plus Shift plus N to go to a file. On a Mac, Go to Class is Command plus O and Go to File is Command plus Shift plus O. Press Ctrl plus Alt plus Shift plus N to go to any symbol.
How do I reformat code in CLion?
Press Ctrl plus Alt plus L on Windows and Linux, or Command plus Option plus L on a Mac, to reformat the code to the code style. Press Ctrl plus Alt plus O to clean up the include directives as well.
Can I change keyboard shortcuts in CLion?
Yes. Open Settings with Ctrl plus Alt plus S, or Command plus comma on a Mac, and select Keymap. Search for the action, right-click it, and choose Add Keyboard Shortcut. CLion copies the predefined keymap with your change, and warns you if the keys are already used.
Which CLion version do these shortcuts apply to?
Every shortcut here was verified against JetBrains' official CLion keyboard shortcut reference, which covers the default keymap used by the current release, CLion 2026.3, released in November 2026.
By Umar Farooq, Tech Know.


0 Comments