CLion Keyboard Shortcuts

Complete CLion keyboard shortcuts and commands reference — 66 shortcuts across 8 categories. Quick reference cheat sheet for Windows & Mac.

CLion is the JetBrains IDE for C and C++, and its keymap is the shared JetBrains default — if the IntelliJ or PyCharm pages here are familiar, the keys are the same. This page is written for what those keys mean in a CMake project: where go-to-definition lands with headers, what run means with multiple targets, how the debugger fits. The table is the Windows/Linux keymap; macOS uses Cmd.

Editing (22)

ShortcutActionWhat it does
Ctrl + SpaceBasic code completionMac: Ctrl + Space.
Ctrl + Shift + SpaceSmart code completionMac: Ctrl + Shift + Space. Filters completions by the expected type.
Alt + EnterShow intention actions and quick-fixesMac: Option + Return.
Alt + InsertGenerate codeMac: Cmd + N. Constructors, getters, operators and more.
Ctrl + Alt + TSurround with if, while, #ifdef and other constructsMac: Option + Cmd + T.
Ctrl + Shift + EnterComplete statementMac: Cmd + Shift + Return. Adds missing braces or semicolons and moves the caret to the next line.
Ctrl + OOverride functionsMac: Ctrl + O.
Ctrl + IImplement functionsMac: Ctrl + I.
Ctrl + /Comment or uncomment with a line commentMac: Cmd + /.
Ctrl + Shift + /Comment or uncomment with a block commentMac: Cmd + Option + /.
Ctrl + PShow parameter infoMac: Cmd + P.
Ctrl + Alt + LReformat codeMac: Cmd + Option + L.
Ctrl + QQuick documentation lookupMac: Ctrl + J or F1.
Ctrl + Alt + IAuto-indent linesMac: Ctrl + Option + I.
Ctrl + DDuplicate current lineMac: Cmd + D.
Ctrl + EnterSmart line splitMac: Cmd + Return.
Shift + EnterStart new lineMac: Shift + Return.
Ctrl + F4Close active editor tabMac: Cmd + W.
Ctrl + WIncrease syntax-aware selectionMac: Option + Up.
Ctrl + Shift + WDecrease syntax-aware selectionMac: Option + Down.
Alt + Shift + ClickPlace the caret in multiple locationsMac: Option + Shift + Click.
EscRestore single caret modeSame key on Mac.

Usage search (4)

ShortcutActionWhat it does
Alt + F7Find usagesMac: Option + F7.
Ctrl + F7Find usages in fileMac: Cmd + F7.
Ctrl + Shift + F7Highlight usages in fileMac: Cmd + Shift + F7.
Ctrl + Alt + F7Show usagesMac: Cmd + Option + F7. Opens usages in a popup instead of the tool window.

Refactoring (8)

ShortcutActionWhat it does
Ctrl + Alt + Shift + TRefactor thisMac: Ctrl + T. Lists every refactoring available for the selection.
Shift + F6RenameMac: Shift + F6.
Ctrl + F6Change signatureMac: Cmd + F6.
Ctrl + Alt + NInlineMac: Option + Cmd + N.
Ctrl + Alt + MExtract functionMac: Option + Cmd + M.
Alt + DeleteSafe deleteMac: Cmd + Delete.
Ctrl + Alt + VIntroduce variableMac: Option + Cmd + V.
Ctrl + Alt + PIntroduce parameterMac: Option + Cmd + P.

Search and replace (6)

ShortcutActionWhat it does
Ctrl + Shift + AFind actionMac: Shift + Cmd + A. Finds any command by name when you do not remember its shortcut.
Double ShiftSearch everywhereMac: Double Shift.
Ctrl + FFindMac: Cmd + F.
Ctrl + RReplaceMac: Cmd + R.
Ctrl + Shift + FFind in pathMac: Cmd + Shift + F.
Alt + JSelect next occurrenceMac: Ctrl + G.

Navigation (12)

ShortcutActionWhat it does
Ctrl + NGo to classMac: Cmd + O.
Ctrl + Shift + NGo to fileMac: Cmd + Shift + O.
Ctrl + Alt + Shift + NGo to symbolMac: Cmd + Option + O.
Ctrl + GGo to lineMac: Cmd + L.
Ctrl + Shift + BackspaceNavigate to last edit locationMac: Cmd + Shift + Delete.
Alt + F1Select current file or symbol in any viewMac: Option + F1.
Ctrl + BGo to declarationMac: Cmd + B. Ctrl + Click (Cmd + Click) does the same.
Ctrl + Alt + BGo to definitionMac: Cmd + Option + B.
Ctrl + F12File structure popupMac: Cmd + F12. Also used to navigate by file structure.
Ctrl + ERecent files popupMac: Cmd + E.
Ctrl + HType hierarchyMac: Ctrl + H.
Ctrl + Alt + HCall hierarchyMac: Ctrl + Option + H.

Compile, run and debug (8)

ShortcutActionWhat it does
Shift + F10RunMac: Ctrl + R.
Shift + F9DebugMac: Ctrl + D.
Alt + Shift + F10Select configuration and runMac: Ctrl + Option + R.
Alt + Shift + F9Select configuration and debugMac: Ctrl + Option + D.
F8Step overSame key on Mac.
F7Step intoSame key on Mac.
Alt + F8Evaluate expressionMac: Option + F8.
Ctrl + F8Toggle breakpointMac: Cmd + F8.

VCS and local history (4)

ShortcutActionWhat it does
Ctrl + KCommit project to VCSMac: Cmd + K.
Ctrl + TUpdate project from VCSMac: Cmd + T.
Ctrl + Shift + KPush commitsMac: Cmd + Shift + K.
Alt + `VCS quick popupMac: Ctrl + V.

Live templates (2)

ShortcutActionWhat it does
Ctrl + Alt + JSurround with live templateMac: Cmd + Option + J.
Ctrl + JInsert live templateMac: Cmd + J.
📜 Source: JetBrains — CLion Reference Card (default Windows/Linux and macOS keymaps). The Windows/Linux keymap from JetBrains’ CLion reference card, section by section, with the macOS keymap from the same card noted per row. Custom keymaps (Emacs, Visual Studio, Xcode) change most of these. Checked 2026-09-15. How we verify ›
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Frequently Asked Questions

What are the most useful CLion keyboard shortcuts?

The most essential CLion shortcuts are: Double Shift (Search everywhere), Ctrl + Alt + Shift + T (Refactor this), Alt + Enter (Quick fix), Shift + F10 (Run).

What is the CLion shortcut for search everywhere?

The CLion shortcut for search everywhere is Shift + Shift. Search everything.

What's the fastest way to learn all CLion shortcuts?

Print the CLion cheat sheet and keep it next to your keyboard for the first week, then switch to active recall: open Shortcut Speedrun and practice CLion shortcuts against the clock until they're automatic.

Can I combine CLion shortcuts with other tools?

Yes — use My Stack to combine CLion shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Related Shortcut Pages

VS Code Jupyter Notebook PyCharm Xcode Neovim / Vim WebStorm

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Finding code across headers

Ctrl + B on a symbol goes to its declaration in the header, and pressing it again jumps to the definition in the source file — the header/source round trip that C++ needs constantly. Any file, including generated ones in the build directory, opens through Ctrl + Shift + N, and Ctrl + E lists recent files, which in C++ is often the fastest way back to the .cpp you were editing. Alt + F7 finds usages across all translation units, Ctrl + F12 shows the structure of the current file, and Shift + Shift searches everything including CMake targets and actions.

Editing and fixing

Alt + Enter offers intentions: add an include, generate a definition for a declared method, convert to a range-based for, or apply a clang-tidy fix. Ctrl + Alt + L reformats according to the project's .clang-format when one exists. Ctrl + / comments the line, Ctrl + D duplicates it, and F2 jumps to the next error or warning, which with clangd-based analysis usually means the next compile error before you compile. Shift + F6 renames across the project, including in header and source.

Building, running, debugging

Shift + F10 runs the selected configuration — a specific executable target or a test — Alt + Shift + F10 lets you pick one first, and Shift + F9 debugs the selected configuration with GDB or LLDB. Because a CMake project has many targets, the run configuration selector in the toolbar decides which binary these keys build. Ctrl + Shift + A finds any action by name, such as Reload CMake Project, which is needed after editing CMakeLists.txt if auto-reload is off.

🤖 Ask AI about CLion shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok