---
title: "Idea 7.0 m2快捷键一览"
author: "meetrice"
date: "2007-08-22T20:47:17Z"
tags: ["EJB", "F#", "Go", "IDEA", "UP"]
slug: "idea-7-0-m2"
draft: false
lastmod: "2007-08-22T20:47:17Z"
id: 115364
url: "https://meetrice.iteye.com/blog/115364"
---

Function Keyboard shortcut Use this shortcut to... Comment with Line Comment &lt;nobr&gt;Ctrl + /&lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + Numpad/&lt;/nobr&gt; Comment/uncomment current line or selected block with line comments Comment with Block Comment &lt;nobr&gt;Ctrl + Shift + /&lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + Shift + Numpad/&lt;/nobr&gt; Comment/uncomment code with block comments Quick Javadoc &lt;nobr&gt;Ctrl + Q/Alt + Button2 Click&lt;/nobr&gt; Show a popup window with Javadoc for the symbol at the caret Parameter Info &lt;nobr&gt;Ctrl + P&lt;/nobr&gt; Show parameters of the method call at the caret Context Info &lt;nobr&gt;Alt + Q&lt;/nobr&gt; Show the current method or class declaration when it is not visible Error Description &lt;nobr&gt;Ctrl + F1&lt;/nobr&gt; Show an error or warning description at the caret External Javadoc &lt;nobr&gt;Shift + F1&lt;/nobr&gt; Open browser with Javadoc for the selected item Override Methods... &lt;nobr&gt;Ctrl + O&lt;/nobr&gt; Override base class methods in the current class Implement Methods... &lt;nobr&gt;Ctrl + I&lt;/nobr&gt; Override base interface/class methods in the current class Surround with... Ctrl + Alt + T Surround selected code fragment with if, while, try/catch, or other construct. In the GUI Designer, use this shortcut to [wrap](http://meetrice.iteye.com/javascripts/Procedures/DesigningGUI/buildingForms/wrappingUnwrappingComponents.html) selected components into a container. Generate &lt;nobr&gt;Alt + Insert&lt;/nobr&gt; Generate constructor, getter or setter method, or EJB components Basic Code Completion &lt;nobr&gt;Ctrl + Space&lt;/nobr&gt;  
&lt;nobr&gt;Alt + /&lt;/nobr&gt; Code completion for any class, method or variable SmartType Code Completion &lt;nobr&gt;Ctrl + Shift + Space&lt;/nobr&gt; Code Completion filtering the lookup list basing on expected type Class Name Code Completion &lt;nobr&gt;Ctrl + Alt + Space&lt;/nobr&gt; Completes a class name and, if necessary, creates an import statement for it Expand Word Alt+Slash Goes through the names of classes, methods, keywords and variables in the current visibility scope. Insert Live Template... &lt;nobr&gt;Ctrl + J&lt;/nobr&gt; Show a popup list of starting with a specified prefix Surround with Live Template... &lt;nobr&gt;Ctrl + Alt + J&lt;/nobr&gt; Surround the selection with one of the templates Next Template Variable Tab/Enter In templates: move the caret to the next template variable Previous Template Variable &lt;nobr&gt;Shift + Tab&lt;/nobr&gt; In templates: move the caret to the previous template variable

Enter Enter ![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif)  In the editor: enter a new line and set the caret at its beginning.  
![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif) In a lookup list: select an item. Tab Tab ![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif)  In the editor:  
With selection: indent selected lines  
Without selection: insert a tab symbol (or corresponding number of space characters)  
![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif) In a lookup list:  
No code after the caret in the editor: select an item  
Some code after the caret in the editor: select an item and substitute the code after the caret with it. Delete Delete ![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif)  In the editor: delete selected symbol/block  
![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif) In a usage view: exclude a selected item  
![Icon](http://meetrice.iteye.com/javascripts/DefaultCSS/img/seealso_blt.gif) In other views: remove selected item(s) Backspace Backspace  
Shift + Backspace Delete a character to the left of the caret. Undo Backspace  
Alt + Backspace Undo last operation Redo Ctrl + Shift + Z  
Alt + Shift + Backspace Redo last undone operation Cut Ctrl + X  
Shift + Delete Cut a current line or a selected code block to clipboard Copy Ctrl + C  
Ctrl + Insert Copy a current line or a selected code block to clipboard Paste Ctrl + V  
Shift + Insert Paste from clipboard Paste... Ctrl + Shift + V  
Ctrl + Shift + Insert Paste selected entry from the clipboard. Up Up Arrow Move the caret one line up Up with Selection Shift + Up Move the caret one line up selecting the text Down Down Arrow Move the caret one line down Down with Selection Shift + Down Move the caret one line down selecting the text Left Left Arrow Move the caret one character to the left Left with Selection Shift + Left Move the caret one character to the left selecting the text Right Right Arrow Move the caret one character to the right Right with Selection Shift + Right Move the caret one character to the right selecting the text Go to Page Bottom Ctrl + Page Down Move the caret down to the page bottom Go to Page Bottom with Selection Ctrl + Shift + Page Down Move the caret down to the page bottom selecting the text Go to Page Top Ctrl + Page Up Move the caret up to the page bottom Go to Page Top with Selection Ctrl + Shift + Page Up Move the caret up to the page bottom selecting the text Page Down Page Down Move the caret one page down Page Down with Selection Shift + Page Down Move the caret one page down selecting the text Page Up Page Up Move the caret one page down Page Up with Selection Shift + Page Up Move the caret one page up selecting the text Scroll Down Ctrl + Down/Ctrl + Shift + Down Scroll the text one line down while moving the caret to the previous line Scroll to Center Ctrl + M Scroll a line with a caret to the screen center Scroll Up Ctrl + Up/Ctrl + Shift + Up Scroll the text one line up while moving the caret to the next line Move to Line End End Move the caret to a line end Move to Line End with Selection Shift + End Move the caret to a line end selecting the text Move to Line Start Home Move the caret to a line start Move to Line Start with Selection Shift + Home Move the caret to a line start selecting the text Move to Next Word Ctrl + Right Move the caret to a next word Move to Next Word with Selection Shift + Ctrl + Right Move the caret to a next word selecting it Move to Previous Word Ctrl + Left Move the caret to a previous word Move to Previous Word with Selection Shift + Ctrl + Left Move the caret to a previous word selecting it Move to Text End Ctrl + End Move the caret to a text end Move to Text End with Selection Ctrl + Shift + End Move the caret to a text end selecting it Move to Text Start Ctrl + Home Move the caret to a text start Move to Text Start with Selection Ctrl + Shift + Home Move the caret to a text start selecting it Select All Ctrl + A Select an entire text opened in the editor Delete Line at Caret Ctrl + Y Delete a line at which the caret is currently located Delete to Word End Ctrl + Delete Delete a word starting from the current caret location up to the word end Delete to Word Start Ctrl + Backspace Delete a word starting from the current caret location up to the word start Toggle Insert/Override Insert Toggle insert/overwrite modes Duplicate Line or Block Ctrl + D Duplicate a selected block or a line at which the caret is currently located Toggle Case Ctrl + Shift + U Toggle case of a selected text block Move to Code Block End Ctrl + ] Move the caret to the current code block end highlighting the block limits Move to Code Block End with Selection Ctrl + Shift + ] Move the caret to the current code block end selecting the code beginning from the initial caret location Move to Code Block Start Ctrl + [ Move the caret to the current code block start highlighting the block limits Move to Code Block Start with Selection Ctrl + Shift + [ Move the caret to the current code block start selecting the code beginning from the initial caret location Start New Line Shift + Enter Start a new line after the current one positioning the caret in accordance with the current indentation level (equal to sequential pressing ,) Join Lines Ctrl + Shift + J Concatenate selected lines into one or concatenates a line where the caret is currently located with a next one Split Line Ctrl + Enter Split a selected line at a point where the caret is located leaving the caret at the end of the first line (equal to sequential pressing , , ) Select Word at Caret Ctrl + W Select successively increasing code blocks starting from the current caret location Unselect Word at Caret Ctrl + Shift + W Remove sequentially selection made by the action Indent Selection Tab Move a selected block to the next indent level Unindent Selection Shift + Tab Move a selected block to the previous indent level Auto-indent Lines Ctrl + Alt + I Indent current line or selected block according to the

Expand &lt;nobr&gt;Ctrl + Numpad+&lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + =&lt;/nobr&gt; Expand method, class or any other foldable block of code at caret. Collapse &lt;nobr&gt;Ctrl + Numpad-&lt;/nobr&gt;  
Fold method, class or any other foldable block of code at caret. Expand All &lt;nobr&gt;Ctrl + Shift + Numpad+ &lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + Shift + =&lt;/nobr&gt; Expand all folded blocks in the current source file. Collapse All &lt;nobr&gt;Ctrl + Shift + Numpad- &lt;/nobr&gt;  
Collapse all foldable blocks in the current source file. Fold Selection / Remove Region &lt;nobr&gt;Ctrl+.&lt;/nobr&gt; Collapse or expands the current selection. This option folds or unfolds arbitrary fragments of text. Fold Code Block &lt;nobr&gt;Ctrl+Shift+.&lt;/nobr&gt; Collapse current block of code, even though that block does not have folding toggles (for example, if or when constructs.

Make Project &lt;nobr&gt;Ctrl + F9&lt;/nobr&gt; Compile all modified and dependent files in a project Compile &lt;nobr&gt;Ctrl + Shift + F9&lt;/nobr&gt; Compile a selected file/package Run &lt;nobr&gt;Shift + F10&lt;/nobr&gt; Run a program Debug &lt;nobr&gt;Shift + F9&lt;/nobr&gt; Debug a program Step Over F8 Step to a next line in a current file Step Into F7 Step to a next executed line Step Out &lt;nobr&gt;Shift + F8&lt;/nobr&gt; Step to a first executed line after returning from a current method Run to Cursor &lt;nobr&gt;Alt + F9&lt;/nobr&gt; Run to the line where the caret is located Resume Program F9 Resume program execution Stop Program &lt;nobr&gt;Shift + F2&lt;/nobr&gt; Terminate a debugging session Evaluate Expression &lt;nobr&gt;Alt + F8&lt;/nobr&gt; Evaluate an arbitrary expression Toggle Breakpoint &lt;nobr&gt;Ctrl + F8&lt;/nobr&gt; Toggle breakpoint at a current line View Breakpoints &lt;nobr&gt;Ctrl + Shift + F8&lt;/nobr&gt; View/manage all breakpoints/watchpoints

Edit Source F4 Open an editor for the selected item or items (inluding a GUI form) and give focus to the last opened file. View Source Ctrl + Enter Open an editor for the selected item or items. New... Alt+Insert Create a new class, interface, file or directory. Escape Esc

In the editor: closes popups, removes highlighting

In a tool window: transfers focus to the editor

Export to Text File Alt + O Export contents of a a tool window to a text file. Select Next Tab &lt;nobr&gt;Alt + Right&lt;/nobr&gt; When several tabs are open in the editor or a view, open the next tab to the right (or first tab if the current one is the last). Select Previous Tab &lt;nobr&gt;Alt + Left&lt;/nobr&gt; When several tabs are open in the editor or a view, open the next tab to the left (or last tab if the current one is the first) Close Active Editor &lt;nobr&gt;Ctrl + F4&lt;/nobr&gt; Close an active editor. Close Active Tab &lt;nobr&gt;Ctrl + Shift + F4&lt;/nobr&gt; Close an active tab in a tool window. Save All &lt;nobr&gt;Ctrl + S&lt;/nobr&gt; Save all files and settings. Synchronize &lt;nobr&gt;Ctrl + Alt + Y&lt;/nobr&gt; Detect all externally changed files and reload them from disk Full Screen &lt;nobr&gt;Ctrl + Alt + F11&lt;/nobr&gt; Toggle full-screen mode on/off for the current IDEA frame Show Intention Action &lt;nobr&gt;Alt + Enter&lt;/nobr&gt; Display intention actions (if any) for the code where the caret is currently located, or the selected GUI component in a form.

Change View &lt;nobr&gt;Alt + F1&lt;/nobr&gt; Choose Project, Sourcepath or Classpath tree in the tool window Collapse all &lt;nobr&gt;Ctrl + Numpad-&lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + Minus&lt;/nobr&gt; Collapse all nodes in a tree view Expand all &lt;nobr&gt;Ctrl + Numpad+&lt;/nobr&gt;  
&lt;nobr&gt;Ctrl + Plus&lt;/nobr&gt; Expand all nodes in a tree view Open tool window &lt;nobr&gt;Alt + &lt;number&gt;&lt;/number&gt;&lt;/nobr&gt; Open a tool window with the corresponding number Hide Active Window &lt;nobr&gt;Shift + Escape&lt;/nobr&gt; Hide a currently active tool window Jump to Last Window F12 Activate a last focused tool window

Change Left View &lt;nobr&gt;Alt + F1&lt;/nobr&gt; Change the left panel contents Change Right View &lt;nobr&gt;Alt + F2&lt;/nobr&gt; Change the right panel contents Synchronize Views &lt;nobr&gt;Alt + F6&lt;/nobr&gt; Synchronize both panels Swap Panels &lt;nobr&gt;Ctrl + U&lt;/nobr&gt; Swap the panels

In-place editing &lt;nobr&gt;F2&lt;/nobr&gt; Trigger in-place editor for the name of a selected component in a GUI form.

Move to Next Difference F7 Navigate to the next difference in a view Move to Previous Difference &lt;nobr&gt;Shift + F7&lt;/nobr&gt; Navigate to the previous difference in a view

Go to Bookmark &lt;number&gt;&lt;/number&gt; &lt;nobr&gt;Ctrl + &lt;number&gt;&lt;/number&gt;&lt;/nobr&gt; Navigate to a numbered bookmark with corresponding number Toggle Bookmark &lt;number&gt;&lt;/number&gt; &lt;nobr&gt;Ctrl + Shift + &lt;number&gt;&lt;/number&gt;&lt;/nobr&gt; Turn bookmark on or off.

File Structure Popup &lt;nobr&gt;Ctrl + F12&lt;/nobr&gt; Popup the current file structure for quick navigation Select in... &lt;nobr&gt;Alt + F1&lt;/nobr&gt; Select the current class or method in any view Recent Files... &lt;nobr&gt;Ctrl + E&lt;/nobr&gt; Show recently edited file list Type Hierarchy &lt;nobr&gt;Ctrl + H&lt;/nobr&gt; Browse hierarchy for the selected class Method Hierarchy &lt;nobr&gt;Ctrl + Shift + H&lt;/nobr&gt; Browse method hierarchy for the selected method Call Hierarchy &lt;nobr&gt;Ctrl + Alt + H&lt;/nobr&gt; Browse call hierarchy for the selected method Go to Class &lt;nobr&gt;Ctrl + N&lt;/nobr&gt; Navigate directly to any class in the project by specifying its name in a pop-up dialog Go to File &lt;nobr&gt;Ctrl + Shift + N&lt;/nobr&gt; Navigate directly to any file in the project by specifying its name in a pop-up dialog Go to Line &lt;nobr&gt;Ctrl + G&lt;/nobr&gt; Navigate to any line in the current file by specifying the line number Go to Declaration &lt;nobr&gt;Ctrl + B&lt;/nobr&gt; Navigated to a declaration of an item under the caret Go to Implementation &lt;nobr&gt;Ctrl + Alt + B&lt;/nobr&gt; Navigate to an implementation of an item under the caret Go to Type Declaration &lt;nobr&gt;Ctrl + Shift + B&lt;/nobr&gt; Navigate to a type declaration of an item which is a variable or a method call under the caret Go to Super Method &lt;nobr&gt;Ctrl + U&lt;/nobr&gt; Navigate to a super method declaration of a method under the caret Go to Next Method &lt;nobr&gt;Alt + Down&lt;/nobr&gt; Navigate to the next method declaration in the active editor tab Go to Previous Method &lt;nobr&gt;Alt + Up&lt;/nobr&gt; Navigate to the previous method declaration in the active editor tab Back &lt;nobr&gt;Ctrl + Alt + Left&lt;/nobr&gt; Undo last navigation operation Forward &lt;nobr&gt;Ctrl + Alt + Right&lt;/nobr&gt; Redo last undone navigation operation Go to Previous Occurrence &lt;nobr&gt;Ctrl + Alt + Up&lt;/nobr&gt; Navigate to a previous found item in a or tool window Go to Next Occurrence &lt;nobr&gt;Ctrl + Alt + Down&lt;/nobr&gt; Navigate to a next found item in a or tool window Last Edit Location &lt;nobr&gt;Ctrl + Shift + Backspace&lt;/nobr&gt; Move through the most recent change points Go to Next Highlighted Error F2 Navigate to the next found error/warning Go to Previous Highlighted Error &lt;nobr&gt;Shift + F2&lt;/nobr&gt; Navigate to the previous found error/warning

Find &lt;nobr&gt;Ctrl + F&lt;/nobr&gt; Invoke the dialog. Replace &lt;nobr&gt;Ctrl + R&lt;/nobr&gt; Invoke the dialog. Search for next/previous occurrence &lt;nobr&gt;F3/Shift + F3&lt;/nobr&gt; Navigate to the next/previous occurrence of a selected word in the editor. Find Word at Caret &lt;nobr&gt;Ctrl + F3&lt;/nobr&gt; Search in the editor for the word where the caret is currently located. Incremental Search &lt;nobr&gt;Alt + F3&lt;/nobr&gt; Invoke the popup. Find in Path &lt;nobr&gt;Ctrl + Shift + F&lt;/nobr&gt; Invoke the dialog. Replace in Path &lt;nobr&gt;Ctrl + Shift + R&lt;/nobr&gt; Invoke the dialog. Find Usages &lt;nobr&gt;Alt + F7&lt;/nobr&gt; Invoke the dialog. Find Usages in File &lt;nobr&gt;Ctrl + F7&lt;/nobr&gt; Invoke the dialog. Highlight Usages in File &lt;nobr&gt;Ctrl + Shift + F7&lt;/nobr&gt; Highlight usages of a symbol where the caret is currently located.

Rename &lt;nobr&gt;Shift + F6&lt;/nobr&gt; Rename a selected statement and correct all references Change Method Signature &lt;nobr&gt;Ctrl + F6&lt;/nobr&gt; Refactor a selected method signature and update all references Move F6 Move a selected class/package/static member to another package/class and correct all references Copy F5 Create a selected class/file/directory copy in the same or different package Clone &lt;nobr&gt;Shift + F5&lt;/nobr&gt; Create a selected class copy in the same package Safe Delete &lt;nobr&gt;Alt + Delete&lt;/nobr&gt; Delete a selected class/method/field checking its usages Extract Method &lt;nobr&gt;Ctrl + Alt + M&lt;/nobr&gt; Turn a selected code into a method Introduce Variable &lt;nobr&gt;Ctrl + Alt + V&lt;/nobr&gt; Put a selected expression result into a variable Introduce Field &lt;nobr&gt;Ctrl + Alt + F&lt;/nobr&gt; Put a selected expression result into a field Introduce Constant &lt;nobr&gt;Ctrl + Alt + C&lt;/nobr&gt; Replace a selected expression with a constant (static final field) Introduce Parameter &lt;nobr&gt;Ctrl + Alt + P&lt;/nobr&gt; Turn a selected expression into a method parameter Inline &lt;nobr&gt;Ctrl + Alt + N&lt;/nobr&gt; Inline a selected method/variable