ITeye博客

Idea 7.0 m2快捷键一览

meetrice · 2007-08-22 20:47 · IDEA · Go · EJB · UP · F# · IDEA · Markdown

Function Keyboard shortcut Use this shortcut to... Comment with Line Comment <nobr>Ctrl + /</nobr>
<nobr>Ctrl + Numpad/</nobr> Comment/uncomment current line or selected block with line comments Comment with Block Comment <nobr>Ctrl + Shift + /</nobr>
<nobr>Ctrl + Shift + Numpad/</nobr> Comment/uncomment code with block comments Quick Javadoc <nobr>Ctrl + Q/Alt + Button2 Click</nobr> Show a popup window with Javadoc for the symbol at the caret Parameter Info <nobr>Ctrl + P</nobr> Show parameters of the method call at the caret Context Info <nobr>Alt + Q</nobr> Show the current method or class declaration when it is not visible Error Description <nobr>Ctrl + F1</nobr> Show an error or warning description at the caret External Javadoc <nobr>Shift + F1</nobr> Open browser with Javadoc for the selected item Override Methods... <nobr>Ctrl + O</nobr> Override base class methods in the current class Implement Methods... <nobr>Ctrl + I</nobr> 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 selected components into a container. Generate <nobr>Alt + Insert</nobr> Generate constructor, getter or setter method, or EJB components Basic Code Completion <nobr>Ctrl + Space</nobr>
<nobr>Alt + /</nobr> Code completion for any class, method or variable SmartType Code Completion <nobr>Ctrl + Shift + Space</nobr> Code Completion filtering the lookup list basing on expected type Class Name Code Completion <nobr>Ctrl + Alt + Space</nobr> 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... <nobr>Ctrl + J</nobr> Show a popup list of starting with a specified prefix Surround with Live Template... <nobr>Ctrl + Alt + J</nobr> 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 <nobr>Shift + Tab</nobr> In templates: move the caret to the previous template variable

Enter Enter Icon  In the editor: enter a new line and set the caret at its beginning.
Icon In a lookup list: select an item. Tab Tab Icon  In the editor:
With selection: indent selected lines
Without selection: insert a tab symbol (or corresponding number of space characters)
Icon 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  In the editor: delete selected symbol/block
Icon In a usage view: exclude a selected item
Icon 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 <nobr>Ctrl + Numpad+</nobr>
<nobr>Ctrl + =</nobr> Expand method, class or any other foldable block of code at caret. Collapse <nobr>Ctrl + Numpad-</nobr>
Fold method, class or any other foldable block of code at caret. Expand All <nobr>Ctrl + Shift + Numpad+ </nobr>
<nobr>Ctrl + Shift + =</nobr> Expand all folded blocks in the current source file. Collapse All <nobr>Ctrl + Shift + Numpad- </nobr>
Collapse all foldable blocks in the current source file. Fold Selection / Remove Region <nobr>Ctrl+.</nobr> Collapse or expands the current selection. This option folds or unfolds arbitrary fragments of text. Fold Code Block <nobr>Ctrl+Shift+.</nobr> Collapse current block of code, even though that block does not have folding toggles (for example, if or when constructs.

Make Project <nobr>Ctrl + F9</nobr> Compile all modified and dependent files in a project Compile <nobr>Ctrl + Shift + F9</nobr> Compile a selected file/package Run <nobr>Shift + F10</nobr> Run a program Debug <nobr>Shift + F9</nobr> 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 <nobr>Shift + F8</nobr> Step to a first executed line after returning from a current method Run to Cursor <nobr>Alt + F9</nobr> Run to the line where the caret is located Resume Program F9 Resume program execution Stop Program <nobr>Shift + F2</nobr> Terminate a debugging session Evaluate Expression <nobr>Alt + F8</nobr> Evaluate an arbitrary expression Toggle Breakpoint <nobr>Ctrl + F8</nobr> Toggle breakpoint at a current line View Breakpoints <nobr>Ctrl + Shift + F8</nobr> 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 <nobr>Alt + Right</nobr> 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 <nobr>Alt + Left</nobr> 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 <nobr>Ctrl + F4</nobr> Close an active editor. Close Active Tab <nobr>Ctrl + Shift + F4</nobr> Close an active tab in a tool window. Save All <nobr>Ctrl + S</nobr> Save all files and settings. Synchronize <nobr>Ctrl + Alt + Y</nobr> Detect all externally changed files and reload them from disk Full Screen <nobr>Ctrl + Alt + F11</nobr> Toggle full-screen mode on/off for the current IDEA frame Show Intention Action <nobr>Alt + Enter</nobr> Display intention actions (if any) for the code where the caret is currently located, or the selected GUI component in a form.

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

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

In-place editing <nobr>F2</nobr> 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 <nobr>Shift + F7</nobr> Navigate to the previous difference in a view

Go to Bookmark <number></number> <nobr>Ctrl + <number></number></nobr> Navigate to a numbered bookmark with corresponding number Toggle Bookmark <number></number> <nobr>Ctrl + Shift + <number></number></nobr> Turn bookmark on or off.

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

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

Rename <nobr>Shift + F6</nobr> Rename a selected statement and correct all references Change Method Signature <nobr>Ctrl + F6</nobr> 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 <nobr>Shift + F5</nobr> Create a selected class copy in the same package Safe Delete <nobr>Alt + Delete</nobr> Delete a selected class/method/field checking its usages Extract Method <nobr>Ctrl + Alt + M</nobr> Turn a selected code into a method Introduce Variable <nobr>Ctrl + Alt + V</nobr> Put a selected expression result into a variable Introduce Field <nobr>Ctrl + Alt + F</nobr> Put a selected expression result into a field Introduce Constant <nobr>Ctrl + Alt + C</nobr> Replace a selected expression with a constant (static final field) Introduce Parameter <nobr>Ctrl + Alt + P</nobr> Turn a selected expression into a method parameter Inline <nobr>Ctrl + Alt + N</nobr> Inline a selected method/variable

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。