CLion Keyboard Shortcut Keys: Complete List (With Functions Explained)

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 Shortcuts

Start 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 ShiftDouble ShiftSearch Everywhere: search files, actions and settings
Ctrl + Shift + ACommand + Shift + AFind Action: find any command by name
Double CtrlDouble ControlRun Anything: run a command, console or configuration
Alt + EnterOption + EnterShow Context Actions: show quick fixes at the caret
F2F2Navigate to Next Code Issue: jump to the next error
Shift + F2Shift + F2Navigate to Previous Code Issue: jump to the previous error
Ctrl + ECommand + EView Recent Files: show recently opened files
Ctrl + WOption + UpExtend Selection: grow the selection one code level
Ctrl + Shift + WOption + DownShrink Selection: shrink the selection one level
Ctrl + /Command + /Add/Remove Line Comment: comment the line with //
Alt + F7Option + F7Find 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 + F9Command + F9Build Project: build the whole project
Shift + F10Control + RRun context configuration: run the current configuration
Alt + Shift + F10Control + Option + RRun: choose a configuration and run it
F9Control + DDebug context configuration: debug the current configuration
Alt + Shift + F9Control + Option + DDebug: choose a configuration and debug it
Ctrl + F2Command + F2Stop: stop the running program
F9Command + Option + RResume Program: resume the paused program
F8F8Step Over: run the line without entering the call
F7F7Step Into: step into the function call
Shift + F8Shift + F8Step Out: finish the function and return
Alt + F9Option + F9Run To Cursor: run until the line at the caret
Alt + F8Option + F8Evaluate Expression: evaluate an expression while debugging
Ctrl + F8Command + F8Toggle Line Breakpoint: toggle a breakpoint on the line
Ctrl + Shift + F8Command + Shift + F8View 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 + XCommand + XCut: cut the selection
Ctrl + CCommand + CCopy: copy the selection
Ctrl + VCommand + VPaste: paste from the clipboard
Ctrl + Shift + VCommand + Shift + VPaste from History: paste an earlier clipboard entry
Ctrl + SCommand + SSave All: save all open files
Ctrl + ZCommand + ZUndo: undo the last change
Ctrl + Shift + ZCommand + Shift + ZRedo: redo a change you undid
Ctrl + EnterCommand + EnterSmart Line Split: split the line at the caret
Shift + EnterShift + EnterStart New Line: start a new line below
Ctrl + Alt + EnterCommand + Option + EnterStart New Line Before Current: start a new line above
Ctrl + YCommand + BackspaceDelete Line: delete the whole current line
Ctrl + DCommand + DDuplicate Line: duplicate the current line
Ctrl + F4Command + WClose 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 + LeftOption + LeftMove Caret to Previous Word: move the caret one word left
Ctrl + RightOption + RightMove Caret to Next Word: move the caret one word right
HomeCommand + LeftMove Caret to Line Start: move the caret to the line start
EndCommand + RightMove Caret to Line End: move the caret to the line end
Ctrl + Shift + MControl + MMove 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 + DownControl + Shift + DownNext Method: move the caret to the next method
Alt + UpControl + Shift + UpPrevious 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 + ACommand + ASelect All: select everything in the file
Ctrl + Shift + LeftOption + Shift + LeftMove Caret to Previous Word with Selection: extend the selection one word left
Ctrl + Shift + RightOption + Shift + RightMove Caret to Next Word with Selection: extend the selection one word right
Shift + HomeCommand + Shift + LeftMove Caret to Line Start with Selection: select to the line start
Shift + EndCommand + Shift + RightMove 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 + WOption + UpExtend Selection: grow the selection one code level
Ctrl + Shift + WOption + DownShrink 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 PlusCommand + NumPad PlusExpand: expand the folded block at the caret
Ctrl + NumPad MinusCommand + NumPad MinusCollapse: collapse the block at the caret
Ctrl + Alt + NumPad PlusCommand + Option + NumPad PlusExpand Recursively: expand the block and all inside it
Ctrl + Alt + NumPad MinusCommand + Option + NumPad MinusCollapse Recursively: collapse the block and all inside it
Ctrl + Shift + NumPad PlusCommand + Shift + NumPad PlusExpand All: expand every folded block
Ctrl + Shift + NumPad MinusCommand + Shift + NumPad MinusCollapse 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 + ClickOption + Shift + ClickAdd/Remove Caret: add or remove a caret
Alt + Shift + InsertCommand + Shift + 8Toggle Column Selection Mode: switch column selection mode on or off
Double Ctrl + UpDouble Option + UpClone Caret Above: copy the caret to the line above
Double Ctrl + DownDouble Option + DownClone Caret Below: copy the caret to the line below
Alt + Shift + GOption + Shift + GAdd Caret to Each Line in Selection: put a caret on every selected line
Alt + JControl + GAdd Selection for Next Occurrence: select the next occurrence
Ctrl + Alt + Shift + JCommand + Control + GSelect 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 + EnterOption + EnterShow Context Actions: show quick fixes at the caret
Ctrl + SpaceControl + SpaceBasic Completion: show code completion suggestions
Ctrl + Shift + SpaceControl + Shift + SpaceSmart Completion: complete with the expected type
Ctrl + Shift + EnterCommand + Shift + EnterComplete Statement: finish the statement with brackets
Ctrl + Alt + LCommand + Option + LReformat Code: reformat the code to code style
Ctrl + Alt + OCommand + Option + OOptimize Imports: clean up the include directives
Ctrl + PCommand + PParameter Info: show the parameters of the function
Ctrl + QF1Quick Documentation: show documentation for the symbol
Ctrl + OControl + OOverride Functions: override base class functions
Ctrl + IControl + IImplement 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 + JCommand + JInsert Live Template: insert a code template
Ctrl + Alt + JCommand + Option + JSurround 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 + GCommand + LGo to Line: jump to a line number
Ctrl + NCommand + OGo to Class: open a class by its name
Ctrl + Shift + NCommand + Shift + OGo to File: open a file by typing its name
Ctrl + Alt + BCommand + Option + BGo to Definition: go to the definition at the caret
Ctrl + HControl + HType Hierarchy: show the type hierarchy
Ctrl + Alt + HControl + Option + HCall Hierarchy: show the call hierarchy
Ctrl + F12Command + F12File Structure: show the structure of the current file
Ctrl + TabControl + TabSwitcher: switch between files and tool windows
Alt + F1Option + F1Select In: locate the file or symbol in a tool window
Ctrl + Shift + BackspaceCommand + Shift + BackspaceLast Edit Location: jump back to the last edit
Ctrl + Alt + LeftCommand + [Back: go back one navigation point
Ctrl + Alt + RightCommand + ]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 ShiftDouble ShiftSearch Everywhere: search files, actions and settings
Ctrl + FCommand + FFind: find text in the current file
F3Command + GFind Next / Move to Next Occurrence: go to the next match
Shift + F3Command + Shift + GFind Previous / Move to Previous Occurrence: go to the previous match
Ctrl + RCommand + RReplace: replace text in the current file
Ctrl + Shift + FCommand + Shift + FFind in Files: find text across the project
Ctrl + Shift + RCommand + Shift + RReplace in Files: replace text across the project
Ctrl + F7Command + F7Find Usages in File: find usages in the current file
Ctrl + F3Not assignedNext Occurrence of the Word at Caret: go to the next same word
Ctrl + Shift + ACommand + Shift + AFind 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 + F7Option + F7Find Usages: find all uses of a code element
Ctrl + BCommand + BGo to Declaration: go to the declaration at the caret
Ctrl + Alt + BCommand + Option + BGo to Definition: go to the definition at the caret
Ctrl + Alt + F7Command + Option + F7Show Usages: show usages in a popup
Ctrl + Shift + F7Command + Shift + F7Highlight Usages in File: highlight every usage in the file
Ctrl + Alt + Shift + NCommand + Option + OGo to Symbol: jump to a symbol by name
Ctrl + UCommand + UGo 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 + EnterOption + EnterShow Context Actions: show quick fixes at the caret
Ctrl + F1Command + F1Error Description: show the error at the caret
F2F2Next Code Issue: jump to the next code issue
Shift + F2Shift + F2Previous Code Issue: jump to the previous code issue
Ctrl + Alt + Shift + ICommand + Option + Shift + IRun Inspection by Name: run one inspection by name
Alt + 6Command + 6Show 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 + TControl + TRefactor This: open the refactoring menu
Shift + F6Shift + F6Rename: rename the symbol everywhere
Ctrl + F6Command + F6Change Signature: change a function's signature
F6F6Move: move a function or type
Ctrl + Alt + MCommand + Option + MExtract Function: turn the selection into a function
Ctrl + Alt + NCommand + Option + NInline: inline a variable or function
Alt + DeleteCommand + DeleteSafe Delete: delete only if nothing uses it
Ctrl + Alt + VCommand + Option + VIntroduce Variable: turn the selection into a variable
Ctrl + Alt + PCommand + Option + PIntroduce Parameter: turn the selection into a parameter
Ctrl + Alt + CCommand + Option + CIntroduce 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 + VVCS Operations Popup: open the version control menu
Ctrl + KCommand + KCommit: commit the current changes
Ctrl + TCommand + TUpdate Project: update the project from version control
Ctrl + Alt + ZCommand + Option + ZRollback: roll back the selected changes
Ctrl + Shift + KCommand + Shift + KPush: push the commits to the remote
Ctrl + Alt + Shift + DownControl + Option + Shift + DownNext Change: go to the next change
Ctrl + Alt + Shift + UpControl + Option + Shift + UpPrevious Change: go to the previous change
Alt + 9Command + 9Show 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 + DCommand + DShow Diff: show the differences for the file
F7F7Next Difference: go to the next difference
Shift + F7Shift + F7Previous Difference: go to the previous difference
Ctrl + Alt + RCommand + Control + RightAccept Left Side: accept the left side
Ctrl + Alt + ACommand + Control + LeftAccept Right Side: accept the right side
Ctrl + Shift + TabControl + Shift + TabSelect Opposite Diff Pane: switch focus to the other pane
Ctrl + Shift + DCommand + Shift + DShow 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 + EscapeShift + EscapeHide Active Tool Window: hide the tool window in focus
Ctrl + Shift + F12Command + Shift + F12Hide All Tool Windows: hide every tool window
F12F12Jump to Last Tool Window: jump back to the last tool window
Alt + 1Command + 1Show Project window: show the Project tool window
Alt + 3Command + 3Show Find window: show the Find window
Alt + 4Command + 4Show Run window: show the Run window
Alt + 5Command + 5Show Debug window: show the Debug window
Alt + 7Command + 7Show Structure window: show the Structure window
Alt + 0Command + 0Show Commit window: show the Commit window
Alt + F12Option + F12Show 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.

Post a Comment

0 Comments