# Predefined Windows keymap

> **Note:**
> You can find all shortcuts and modify them in `Settings | Keymap`.
>
>
>
> You can also print the [default keymap reference card](https://resources.jetbrains.com.cn/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf)  .

## IntelliJ IDEA's top keyboard shortcuts

|  |  |
| --- | --- |
|  [Search Everywhere](searching-everywhere.html)  |  Double `Shift`   |
|  [Find Action...](searching-everywhere.html#search_actions)  |  `Ctrl+Shift+A`   |
|  [Show Project window](project-tool-window.html)  |  `Alt+1`   |
|  [Rebuild](compiling-applications.html)  |  `Ctrl+Shift+F9`   |
|  [Show Intention Actions](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`   |
|  [Recent Files](navigating-through-the-source-code.html)  |  `Ctrl+E`   |
|  [Find Usages](find-highlight-usages.html#find-usages)  |  `Alt+F7`   |
|  [Select In...](navigating-through-the-source-code.html)  |  `Alt+F1`   |
|  [Settings...](configure-project-settings.html)  |  `Ctrl+Alt+S`   |
|  [Generate...](generating-code.html)  |  `Alt+Insert`   |
|  [Run Anything](running-applications.html)   |  Double `Ctrl`   |
|  [Debug...](starting-the-debugger-session.html)  |  `Alt+Shift+F9`   |
|  [View Breakpoints...](using-breakpoints.html)  |  `Ctrl+Shift+F8`   |
|  [Attach to Process...](attach-to-process.html)  |  `Ctrl+Alt+F5`   |
|  [VCS Operations Popup...](version-control-integration.html)  |  `Alt+``   |
|  [Refactor This...](refactoring-source-code.html)  |  `Ctrl+Alt+Shift+T`   |
|  [Reformat Code](reformat-and-rearrange-code.html)  |  `Ctrl+Alt+L`   |

## Build projects

|  |  |
| --- | --- |
|  [New in This Directory](null)  |  `Ctrl+Alt+Insert`   |
|  [Build Project](compiling-applications.html)  |  `Ctrl+F9`   |
|  [Rebuild](compiling-applications.html)  |  `Ctrl+Shift+F9`   |

## Basic editing

|  |  |
| --- | --- |
|  [Cut](null)  |  `Ctrl+X`   |
|  [Copy](null)  |  `Ctrl+C`   |
|  [Paste](null)  |  `Ctrl+V`   |
|  [Paste as Plain Text](null)  |  `Ctrl+Alt+Shift+V`   |
|  [Paste from History...](null)  |  `Ctrl+Shift+V`   |
|  [Copy Paths](null)  |  `Ctrl+Shift+C`   |
|  [Copy Reference](null)  |  `Ctrl+Alt+Shift+C`   |
|  [Save All](saving-and-reverting-changes.html)  |  `Ctrl+S`   |
|  [Undo](saving-and-reverting-changes.html)  |  `Ctrl+Z`   |
|  [Redo](saving-and-reverting-changes.html)  |  `Ctrl+Shift+Z`   |
|  [Indent Selection](reformat-and-rearrange-code.html)  |  `Tab`   |
|  [Unindent Line or Selection](reformat-and-rearrange-code.html)  |  `Shift+Tab`   |
|  [Auto-Indent Lines](reformat-and-rearrange-code.html)  |  `Ctrl+Alt+I`   |
|  [Start New Line](null)  |  `Shift+Enter`   |
|  [Start New Line Before Current](null)  |  `Ctrl+Alt+Enter`   |
|  [Delete Line](null)  |  `Ctrl+Y`   |
|  [Join Lines](null)  |  `Ctrl+Shift+J`   |
|  [Duplicate Line or Selection](null)  |  `Ctrl+D`   |
|  [Toggle Case](null)  |  `Ctrl+Shift+U`   |
|  [Scratch File](scratches.html)  |  `Ctrl+Alt+Shift+Insert`   |
|  [Open Source in New Window](null)  |  `Shift+F4`   |
|  [Increase Font Size in All Editors](using-code-editor.html#increase_decrease_font)  |  `Alt+Shift+.`   |
|  [Decrease Font Size in All Editors](using-code-editor.html#increase_decrease_font)  |  `Alt+Shift+Comma`   |

## Caret navigation

|  |  |
| --- | --- |
|  [Move Caret to Previous Word](null)  |  `Ctrl+Left`   |
|  [Move Caret to Next Word](null)  |  `Ctrl+Right`   |
|  [Move Caret to Line Start](null)  |  `Home`   |
|  [Move Caret to Line End](null)  |  `End`   |
|  [Move Caret to Matching Brace](null)  |  `Ctrl+Shift+M`   |
|  [Move Caret to Code Block Start](null)  |  `Ctrl+[`   |
|  [Move Caret to Code Block End](null)  |  `Ctrl+]`   |
|  [Next Method](navigating-through-the-source-code.html)  |  `Alt+Down`   |
|  [Previous Method](navigating-through-the-source-code.html)  |  `Alt+Up`   |
|  [Move Caret to Page Top](null)  |  `Ctrl+Page Up`   |
|  [Move Caret to Page Bottom](null)  |  `Ctrl+Page Down`   |
|  [Page Up](null)  |  `Page Up`   |
|  [Page Down](null)  |  `Page Down`   |
|  [Move Caret to Text Start](null)  |  `Ctrl+Home`   |
|  [Move Caret to Text End](null)  |  `Ctrl+End`   |

## Select text

|  |  |
| --- | --- |
|  [Select All](null)  |  `Ctrl+A`   |
|  [Left with Selection](null)  |  `Shift+Left`   |
|  [Right with Selection](null)  |  `Shift+Right`   |
|  [Move Caret to Previous Word with Selection](null)  |  `Ctrl+Shift+Left`   |
|  [Move Caret to Next Word with Selection](null)  |  `Ctrl+Shift+Right`   |
|  [Move Caret to Line Start with Selection](null)  |  `Shift+Home`   |
|  [Move Caret to Line End with Selection](null)  |  `Shift+End`   |
|  [Up with Selection](null)  |  `Shift+Up`   |
|  [Down with Selection](null)  |  `Shift+Down`   |
|  [Move Caret to Code Block Start with Selection](null)  |  `Ctrl+Shift+[`   |
|  [Move Caret to Code Block End with Selection](null)  |  `Ctrl+Shift+]`   |
|  [Move Caret to Page Top with Selection](null)  |  `Ctrl+Shift+Page Up`   |
|  [Move Caret to Page Bottom with Selection](null)  |  `Ctrl+Shift+Page Down`   |
|  [Page Up with Selection](null)  |  `Shift+Page Up`   |
|  [Page Down with Selection](null)  |  `Shift+Page Down`   |
|  [Move Caret to Text Start with Selection](null)  |  `Ctrl+Shift+Home`   |
|  [Move Caret to Text End with Selection](null)  |  `Ctrl+Shift+End`   |
|  [Extend Selection](null)  |  `Ctrl+W`   |
|  [Shrink Selection](null)  |  `Ctrl+Shift+W`   |

## Code folding

|  |  |
| --- | --- |
|  [Expand](null)  |  `Ctrl+NumPad +`   |
|  [Collapse](null)  |  `Ctrl+NumPad -`   |
|  [Expand Recursively](null)  |  `Ctrl+Alt+NumPad +`   |
|  [Collapse Recursively](null)  |  `Ctrl+Alt+NumPad -`   |
|  [Expand All](null)  |  `Ctrl+Shift+NumPad +`   |
|  [Collapse All](null)  |  `Ctrl+Shift+NumPad -`   |
|  [Fold Selection](null)  |  `Ctrl+.`   |

## Multiple carets and selection ranges

|  |  |
| --- | --- |
|  [Add/Remove Caret](multicursor.html#add-carets-at-selected-locations)  |  `Alt+Shift+Click`   |
|  [Toggle Column Selection Mode](multicursor.html#column_selection)  |  `Alt+Shift+Insert`   |
|  [Clone Caret Above](multicursor.html#add-carets-above-or-below-the-current-caret)  |  Double `Ctrl`  + `Up`  |
|  [Clone Caret Below](multicursor.html#add-carets-above-or-below-the-current-caret)  |  Double `Ctrl`  + `Down`  |
|  [Add Caret to Each Line in Selection](multicursor.html#add-carets-to-the-end-of-each-line-in-the-selected-region)  |  `Alt+Shift+G`   |
|  [Add Selection for Next Occurrence](multicursor.html#multiple_words)  |  `Alt+J`   |
|  [Select All Occurrences](multicursor.html#multiple_words)  |  `Ctrl+Alt+Shift+J`   |
|  [Deselect Last Occurrence](multicursor.html#multiple_words)  |  `Alt+Shift+J`   |
|  [Create Rectangular Selection](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Alt+Shift+Middle-Click`   |
|  [Drag to Create Rectangular Selection](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Alt+Click`   |
|  [Drag to Create Multiple Rectangular Selections](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Ctrl+Alt+Shift+Click`   |

## Coding assistance

|  |  |
| --- | --- |
|  [Show Intention Actions](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`   |
|  [Basic Completion](auto-completing-code.html)  |  `Ctrl+Space`   |
|  [Type-Matching Completion](auto-completing-code.html)  |  `Ctrl+Shift+Space`   |
|  [Second Basic Completion](auto-completing-code.html)  |  `Ctrl+Alt+Space`   |
|  [Complete Current Statement](auto-completing-code.html)  |  `Ctrl+Shift+Enter`   |
|  [Reformat Code](reformat-and-rearrange-code.html)  |  `Ctrl+Alt+L`   |
|  [Parameter Info](viewing-reference-information.html#view-parameter-info)  |  `Ctrl+P`   |
|  [Quick Documentation](viewing-reference-information.html#inline-quick-documentation)  |  `Ctrl+Q`   |
|  [Move Statement Up](null)  |  `Ctrl+Shift+Up`   |
|  [Move Statement Down](null)  |  `Ctrl+Shift+Down`   |
|  [Move Element Left](null)  |  `Ctrl+Alt+Shift+Left`   |
|  [Move Statement Right](null)  |  `Ctrl+Alt+Shift+Right`   |
|  [Move Line Up](null)  |  `Alt+Shift+Up`   |
|  [Move Line Down](null)  |  `Alt+Shift+Down`   |
|  [Comment with Line Comment](null)  |  `Ctrl+/`   |
|  [Comment with Block Comment](null)  |  `Ctrl+Shift+/`   |
|  [Surround With...](surrounding-blocks-of-code-with-language-constructs.html)  |  `Ctrl+Alt+T`   |
|  [Generate...](generating-code.html)  |  `Alt+Insert`   |

## Context navigation

|  |  |
| --- | --- |
|  [Next Method](navigating-through-the-source-code.html)  |  `Alt+Down`   |
|  [Previous Method](navigating-through-the-source-code.html)  |  `Alt+Up`   |
|  [Go to Line/Column...](navigating-through-the-source-code.html#find_line)  |  `Ctrl+G`   |
|  [Switcher](using-code-editor.html#ws_editor_switch_between_tabs)  |  `Ctrl+Tab`   |
|  [Select In...](navigating-through-the-source-code.html)  |  `Alt+F1`   |
|  [Recent Files](navigating-through-the-source-code.html)  |  `Ctrl+E`   |
|  [Recent Changes](navigating-through-the-source-code.html)  |  `Alt+Shift+C`   |
|  [Last Edit Location](navigating-through-the-source-code.html)  |  `Ctrl+Shift+Backspace`   |
|  [Back](navigating-through-the-source-code.html)  |  `Ctrl+Alt+Left`   |
|  [Forward](navigating-through-the-source-code.html)  |  `Ctrl+Alt+Right`   |
|  [Select Next Tab](using-code-editor.html)  |  `Alt+Right`   |
|  [Select Previous Tab](using-code-editor.html)  |  `Alt+Left`   |
|  [Toggle Anonymous Bookmark](bookmarks.html)  |  `F11`   |
|  [Toggle Bookmark with Digit](bookmarks.html)  |  `Ctrl+Shift+[digit]`   |
|  [Toggle Bookmark with Mnemonic](bookmarks.html)  |  `Ctrl+F11`   |
|  [Show All Bookmarks](bookmarks.html)  |  `Shift+F11`   |
|  [Go to Bookmark with Digit](bookmarks.html)  |  `Ctrl+[digit]`   |
|  [Show Mnemonic Bookmarks](bookmarks.html)  |  `Ctrl+Shift+F11`   |
|  [Show Bookmarks window](bookmarks.html)  |  `Alt+2`   |
|  [Show Structure window](viewing-structure-of-a-source-file.html#structure-tool-window)  |  `Alt+7`   |
|  [Show Find window](find-tool-window.html)  |  `Alt+3`   |
|  [Next Occurrence](null)  |  `Ctrl+Alt+Down`   |
|  [Previous Occurrence](null)  |  `Ctrl+Alt+Up`   |

## Find everything

|  |  |
| --- | --- |
|  [Search Everywhere](searching-everywhere.html)  |  Double `Shift`   |
|  [Find...](finding-and-replacing-text-in-file.html#find_in_file)  |  `Ctrl+F`   |
|  [Find Next / Move to Next Occurrence](finding-and-replacing-text-in-file.html#find_in_file)  |  `F3`   |
|  [Find Previous / Move to Previous Occurrence](finding-and-replacing-text-in-file.html#find_in_file)  |  `Shift+F3`   |
|  [Replace...](finding-and-replacing-text-in-file.html#replace_search_string)  |  `Ctrl+R`   |
|  [Find in Files...](finding-and-replacing-text-in-project.html#find_in_project)  |  `Ctrl+Shift+F`   |
|  [Replace in Files...](finding-and-replacing-text-in-project.html#replace_search_string_in_project)  |  `Ctrl+Shift+R`   |
|  [Next Occurrence of the Word at Caret](null)  |  `Ctrl+F3`   |
|  [Go to File...](navigating-through-the-source-code.html)  |  `Ctrl+Shift+N`   |
|  [File Structure](viewing-structure-of-a-source-file.html#structure-popup)  |  `Ctrl+F12`   |
|  [Go to Symbol...](navigating-through-the-source-code.html)  |  `Ctrl+Alt+Shift+N`   |
|  [Find Action...](searching-everywhere.html#search_actions)  |  `Ctrl+Shift+A`   |

## Navigate from symbols

|  |  |
| --- | --- |
|  [Find Usages](find-highlight-usages.html#find-usages)  |  `Alt+F7`   |
|  [Go to Declaration or Usages](navigating-through-the-source-code.html)  |  `Ctrl+B`   |
|  [Go to Type Declaration](navigating-through-the-source-code.html)  |  `Ctrl+Shift+B`   |
|  [Show Usages](navigating-through-the-source-code.html)  |  `Ctrl+Alt+F7`   |
|  [Go to Super Method](navigating-through-the-source-code.html#go_to_implementation)  |  `Ctrl+U`   |
|  [Go to Implementation(s)](navigating-through-the-source-code.html#go_to_implementation)  |  `Ctrl+Alt+B`   |
|  [Go to Test](create-tests.html#test-code-navigation)  |  `Ctrl+Shift+T`   |
|  [Highlight Usages in File](find-highlight-usages.html#usages_in_file)  |  `Ctrl+Shift+F7`   |

## Code analysis

|  |  |
| --- | --- |
|  [Show Intention Actions](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`   |
|  [Error Description](using-code-editor.html)  |  `Ctrl+F1`   |
|  [Next Highlighted Error](navigating-through-the-source-code.html#navigate-errors-warnings)  |  `F2`   |
|  [Previous Highlighted Error](navigating-through-the-source-code.html#navigate-errors-warnings)  |  `Shift+F2`   |
|  [Run Inspection by Name...](running-inspections.html#run-inspections-manually)  |  `Ctrl+Alt+Shift+I`   |
|  [Show Problems window](problems-tool-window.html)  |  `Alt+6`   |

## Run and debug

|  |  |
| --- | --- |
|  [Run Anything](running-applications.html)   |  Double `Ctrl`   |
|  [Run context configuration](run-debug-configuration.html)  |  `Shift+F10`   |
|  [Run...](run-debug-configuration.html)  |  `Alt+Shift+F10`   |
|  [Debug context configuration](starting-the-debugger-session.html)  |  `Shift+F9`   |
|  [Debug...](starting-the-debugger-session.html)  |  `Alt+Shift+F9`   |
|  [Attach to Process...](attach-to-process.html)  |  `Ctrl+Alt+F5`   |
|  [Stop](starting-the-debugger-session.html)  |  `Ctrl+F2`   |
|  [Resume Program](starting-the-debugger-session.html)  |  `F9`   |
|  [Stop Background Processes...](null)  |  `Ctrl+Shift+F2`   |
|  [Step Over](stepping-through-the-program.html)  |  `F8`   |
|  [Force Step Over](stepping-through-the-program.html)  |  `Alt+Shift+F8`   |
|  [Step Into](stepping-through-the-program.html)  |  `F7`   |
|  [Smart Step Into](stepping-through-the-program.html)  |  `Shift+F7`   |
|  [Force Step Into](stepping-through-the-program.html)  |  `Alt+Shift+F7`   |
|  [Step Out](stepping-through-the-program.html)  |  `Shift+F8`   |
|  [Run To Cursor](stepping-through-the-program.html)  |  `Alt+F9`   |
|  [Force Run To Cursor](stepping-through-the-program.html)  |  `Ctrl+Alt+F9`   |
|  [Show Execution Point](stepping-through-the-program.html)  |  `Alt+F10`   |
|  [Evaluate Expression...](examining-suspended-program.html)  |  `Alt+F8`   |
|  [Quick Evaluate Expression](examining-suspended-program.html)  |  `Ctrl+Alt+F8`   |
|  [Toggle Line Breakpoint](using-breakpoints.html)  |  `Ctrl+F8`   |
|  [Toggle Temporary Line Breakpoint](using-breakpoints.html)  |  `Ctrl+Alt+Shift+F8`   |
|  [View Breakpoints...](using-breakpoints.html)  |  `Ctrl+Shift+F8`   |
|  [Edit Breakpoint](using-breakpoints.html)  |  `Ctrl+Shift+F8`   |
|  [Show Run window](run-tool-window.html)  |  `Alt+4`   |
|  [Show Debug window](debug-tool-window.html)  |  `Alt+5`   |
|  [Show Services window](services-tool-window.html)  |  `Alt+8`   |

## Refactorings

|  |  |
| --- | --- |
|  [Refactor This...](refactoring-source-code.html)  |  `Ctrl+Alt+Shift+T`   |
|  [Rename...](rename-refactorings.html)  |  `Shift+F6`   |
|  [Change Signature...](change-signature.html)  |  `Ctrl+F6`   |
|  [Inline...](inline.html)  |  `Ctrl+Alt+N`   |
|  [Move...](move-refactorings.html)  |  `F6`   |
|  [Extract Method...](extract-method.html)  |  `Ctrl+Alt+M`   |
|  [Introduce Field...](null)  |  `Ctrl+Alt+F`   |
|  [Introduce Parameter...](null)  |  `Ctrl+Alt+P`   |
|  [Introduce Variable...](extract-variable.html)  |  `Ctrl+Alt+V`   |
|  [Safe Delete...](safe-delete.html)  |  `Alt+Delete`   |

## Global VCS actions

|  |  |
| --- | --- |
|  [VCS Operations Popup...](version-control-integration.html)  |  `Alt+``   |
|  [Commit...](commit-and-push-changes.html)  |  `Ctrl+K`   |
|  [Update Project](sync-with-a-remote-repository.html)  |  `Ctrl+T`   |
|  [Rollback](undo-changes.html)  |  `Ctrl+Alt+Z`   |
|  [Push...](using-git-integration.html)  |  `Ctrl+Shift+K`   |
|  [Next Change](null)  |  `Ctrl+Alt+Shift+Down`   |
|  [Previous Change](null)  |  `Ctrl+Alt+Shift+Up`   |
|  [Show Version Control window](version-control-integration.html)  |  `Alt+9`   |
|  [Show Commit window](commit-and-push-changes.html)  |  `Alt+0`   |

## Diff Viewer

|  |  |
| --- | --- |
|  [Show Diff](null)  |  `Ctrl+D`   |
|  [Compare Files](null)  |  `Ctrl+D`   |
|  [Next Difference](null)  |  `F7`   |
|  [Previous Difference](null)  |  `Shift+F7`   |
|  [Accept Left Side](null)  |  `Ctrl+Alt+R`   |
|  [Accept Right Side](null)  |  `Ctrl+Alt+A`   |
|  [Select Opposite Diff Pane](null)  |  `Ctrl+Shift+Tab`   |
|  [Show Diff Settings Popup...](null)  |  `Ctrl+Shift+D`   |

## Tool windows

|  |  |
| --- | --- |
|  [Hide Active Tool Window](tool-windows.html)  |  `Shift+Escape`   |
|  [Hide All Tool Windows](tool-windows.html)  |  `Ctrl+Shift+F12`   |
|  [Jump to Last Tool Window](tool-windows.html)  |  `F12`   |
|  [Stretch to Left](manipulating-the-tool-windows.html)  |  `Ctrl+Alt+Shift+Left`   |
|  [Stretch to Right](manipulating-the-tool-windows.html)  |  `Ctrl+Alt+Shift+Right`   |
|  [Stretch to Top](manipulating-the-tool-windows.html)  |  `Ctrl+Alt+Shift+Up`   |
|  [Stretch to Bottom](manipulating-the-tool-windows.html)  |  `Ctrl+Alt+Shift+Down`   |
|  [Show Project window](project-tool-window.html)  |  `Alt+1`   |
|  [Show Bookmarks window](bookmarks.html)  |  `Alt+2`   |
|  [Show Find window](find-tool-window.html)  |  `Alt+3`   |
|  [Show Run window](run-tool-window.html)  |  `Alt+4`   |
|  [Show Debug window](debug-tool-window.html)  |  `Alt+5`   |
|  [Show Problems window](problems-tool-window.html)  |  `Alt+6`   |
|  [Show Structure window](viewing-structure-of-a-source-file.html#structure-tool-window)  |  `Alt+7`   |
|  [Show Services window](services-tool-window.html)  |  `Alt+8`   |
|  [Show Version Control window](version-control-integration.html)  |  `Alt+9`   |
|  [Show Commit window](commit-and-push-changes.html)  |  `Alt+0`   |
|  [Show Terminal window](null)  |  `Alt+F12`   |

