| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML> | |
| <HEAD> | |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > | |
| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> | |
| <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> | |
| <LINK REL="STYLESHEET" HREF="../book.css" CHARSET="ISO-8859-1" TYPE="text/css"> | |
| <TITLE> | |
| List of key bindings | |
| </TITLE> | |
| <link rel="stylesheet" type="text/css" HREF="../book.css"> | |
| <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"> </script> | |
| </HEAD> | |
| <BODY BGCOLOR="#ffffff"> | |
| <h2>List of key bindings</h2> | |
| The list of available key bindings in Eclipse depends on many factors, including | |
| what view or editor is selected, whether a dialog is open, what plug-ins are | |
| installed, and what operating and windowing system is being used. At any | |
| time, you can obtain a list of available key bindings using Key Assist | |
| (<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.showKeyAssist")'> | |
| <img src="PLUGINS_ROOT/PRODUCT_PLUGIN/command_link.png"/> | |
| <b>Help > Key Assist...</b></a> | |
| or Ctrl+Shift+L). The following tables list some | |
| popular key bindings available in the Eclipse SDK. | |
| <p> </p> | |
| <h3><strong>File actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 64.5pt;" height="86"> | |
| <td class="xl29" style="height: 64.5pt; width: 126pt;" height="86">New</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Create a | |
| Java element or a new resource. Configure which elements are shown in the | |
| submenu in Window > Customize Perspective. In a Java perspective, by | |
| default action for creating a project, package, class, interface , source | |
| folder, scrapbook, file and folder are available.</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">Ctrl + N</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Close</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Close | |
| the current editor. If the editor contains unsaved data, a save request | |
| dialog will be shown.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + F4</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Close | |
| All</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Close all editors. | |
| If editor contains unsaved data, a save request dialog will be shown.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + F4</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Save</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Save | |
| the content of the current editor. Disabled if the editor does not contain | |
| unsaved changes.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + S</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Save | |
| As</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Save | |
| the content of the current editor under a new name.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;"></td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Save | |
| All</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Save | |
| the content of all editors with unsaved changes. Disabled if no editor contains | |
| unsaved changes.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + S</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Print</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Prints | |
| the content of the current editor. Enabled when an editor has the focus.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + P</td> | |
| </tr> | |
| <tr style="height: 51.75pt;" height="69"> | |
| <td class="xl27" style="border-top: medium none; height: 51.75pt; width: 126pt;" height="69">Properties</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 269pt;">Opens | |
| the property pages of the select elements. Opened on Java projects the Java | |
| Build Path page and the Javadoc Location page are available. For JAR archives, | |
| configure the JAR's Source Attachment and Javadoc Location here.</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Enter</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Edit actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 13.5pt;" height="18"> | |
| <td class="xl29" style="height: 13.5pt; width: 126pt;" height="18">Undo</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Revert the | |
| last change in the editor</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">Ctrl + Z</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Redo</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Revert | |
| an undone change</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Y</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Cut</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Copies | |
| the currently selected text or element to the clipboard and removes the | |
| element. On elements, the remove is not performed before the clipboard is | |
| pasted.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + X</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Copy</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Copies | |
| the currently selected text or elements to the clipboard</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + C</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Paste</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Paste | |
| the current content as text to the editor, or as a sibling or child element | |
| to the a currently selected element.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + V</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Delete</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Delete | |
| the current text or element selection.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Delete</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Select | |
| All</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Select | |
| all the editor content..</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + A</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Find | |
| / Replace</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Open | |
| the Find / Replace dialog. Editor only.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + F</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Find | |
| Next</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Finds | |
| the next occurrence of the currently selected text. Editor only.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + K</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Find | |
| Previous</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Finds | |
| the previous occurrence of the currently selected text. Editor only.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + K</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Incremental | |
| Find Next</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the incremental find mode. After invocation, enter the search text as instructed | |
| in the status bar. Editor only.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + J</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Incremental | |
| Find Previous</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the incremental find mode. After invocation, enter the search text as instructed | |
| in the status bar. Editor only.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + J</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Add | |
| Task</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Add | |
| a user defined task to the current text selection or selected element.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Enter</td> | |
| </tr> | |
| <tr style="height: 51pt;" height="68"> | |
| <td rowspan="4" class="xl27" style="border-top: medium none; height: 127.5pt; width: 126pt;" height="170">Expand | |
| Selection to</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 269pt;">Enclosing | |
| Element: Selects the enclosing expression, block, method in the code. This | |
| action is aware of the Java syntax. It may not function properly when the | |
| code has syntax errors. (Arrow Up).</td> | |
| <td rowspan="4" class="xl27" style="border-top: medium none; width: 110pt;">Alt | |
| + Shift + Arrow Keys</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl28" style="border-left: medium none; height: 25.5pt; width: 269pt;" height="34">Next | |
| Element: Selects the current and next element. (Arrow Right)</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl28" style="border-left: medium none; height: 25.5pt; width: 269pt;" height="34">Previous | |
| Element: Selects the current and the previous element (Arrow Left)</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl28" style="border-left: medium none; height: 25.5pt; width: 269pt;" height="34">Restore | |
| Last Selection: After an invocation of Expand Selection to restore the previous selection. (Arrow Down)</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="height: 38.25pt; width: 126pt;" height="51">Show Tooltip | |
| Description</td> | |
| <td class="xl25" style="border-left: medium none; width: 269pt;">Shows the | |
| value of a hover that would appear at the current cursor location. The dialog | |
| shown is scrollable and does not shorten descriptions.</td> | |
| <td class="xl25" style="border-left: medium none; width: 110pt;">F2</td> | |
| </tr> | |
| <tr style="height: 89.25pt;" height="119"> | |
| <td class="xl25" style="border-top: medium none; height: 89.25pt; width: 126pt;" height="119">Content | |
| Assist</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Opens | |
| a context assist dialog at the current cursor position to bring up Java | |
| code assist proposals and templates. See the Templates preference page for | |
| available templates (Window > Preferences > Java > Editor > | |
| Templates) and go to the Editor preference page (Window > Preferences | |
| > Java > Editor > Code Assist) for configuring the behavior of | |
| code assist.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Space</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Quick | |
| Fix</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">If | |
| the cursor is located at a location with problem indication this opens a | |
| context assist dialog at the current cursor to present possible corrections.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + 1</td> | |
| </tr> | |
| <tr style="height: 51.75pt;" height="69"> | |
| <td class="xl27" style="border-top: medium none; height: 51.75pt; width: 126pt;" height="69">Parameter | |
| Hints</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 269pt;">If | |
| the cursor is located at the parameter specification for method reference, | |
| this actions shows a hover with parameter types information.The parameter | |
| at the current cursor location is shown in bold.</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + Space</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Navigate actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 26.25pt;" height="35"> | |
| <td class="xl29" style="height: 26.25pt; width: 126pt;" height="35">Open</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Tries to | |
| resolve the element referenced at the current code selection and opens the | |
| file declaring the reference.</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">F3</td> | |
| </tr> | |
| <tr style="height: 63.75pt;" height="85"> | |
| <td class="xl25" style="border-top: medium none; height: 63.75pt; width: 126pt;" height="85">Open | |
| Type Hierarchy</td> | |
| <td class="xl26" style="width: 269pt;">Tries to resolve the element referenced | |
| at the current code selection and opens the element in the Type Hierarchy | |
| view. Invoked on elements, opens the type hierarchy of the element. Supported | |
| in the Java editor and views showing Java elements.</td> | |
| <td class="xl25" style="border-top: medium none; width: 110pt;">F4</td> | |
| </tr> | |
| <tr style="height: 102pt;" height="136"> | |
| <td class="xl25" style="border-top: medium none; height: 102pt; width: 126pt;" height="136">Open | |
| External Javadoc</td> | |
| <td class="xl25" style="border-left: medium none; width: 269pt;">Opens the | |
| Javadoc documentation of the currently selected element or text selection. | |
| The location of the Javadoc of a JAR or a project is specified in the Javadoc | |
| Location property page on projects or JARs. Note that this external Javadoc | |
| documentation may not be up to date with the Javadoc specified in the current | |
| code. You can create Javadoc documentation for source files in a Java project | |
| using the Javadoc export wizard.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Shift | |
| + F2</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Open | |
| Type</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Brings | |
| up the Open Type selection dialog to open a type in the editor.The Open | |
| Type selection dialog shows all types existing in the workspace.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + T</td> | |
| </tr> | |
| <tr style="height: 51pt;" height="68"> | |
| <td class="xl25" style="border-top: medium none; height: 51pt; width: 126pt;" height="68">Open | |
| Type In Hierarchy</td> | |
| <td class="xl26" style="width: 269pt;">Brings up the Open Type selection dialog | |
| to open a type in the editor and the Type Hierarchy view. The Open Type | |
| selection dialog shows all types that exist in the workspace.</td> | |
| <td class="xl25" style="border-top: medium none; width: 110pt;">Ctrl + Shift | |
| + H</td> | |
| </tr> | |
| <tr style="height: 25.5pt;" height="34"> | |
| <td class="xl25" style="border-top: medium none; height: 25.5pt; width: 126pt;" height="34">Show | |
| Outline</td> | |
| <td class="xl25" style="border-left: medium none; width: 269pt;">Opens the | |
| lightweight outliner for the currently selected type.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + O</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Go | |
| to Next Problem</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Selects | |
| the next problem. Supported in the Java editor.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + .</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Go | |
| to Previous Problem</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Selects | |
| the previous problem. Supported in the Java editor.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + ,</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Go | |
| to Last Edit Location</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Reveal | |
| the location where the last edit occurred.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Q</td> | |
| </tr> | |
| <tr style="height: 26.25pt;" height="35"> | |
| <td class="xl27" style="border-top: medium none; height: 26.25pt; width: 126pt;" height="36">Go | |
| to Line</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 269pt;">Opens | |
| an a dialog which allows entering the line number to which the editor should | |
| jump to. Editor only.</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + L</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Search actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 13.5pt;" height="18"> | |
| <td class="xl29" style="height: 13.5pt; width: 126pt;" height="18">Search...</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Opens the | |
| search dialog</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">Ctrl + H</td> | |
| </tr> | |
| <tr style="height: 26.25pt;" height="35"> | |
| <td class="xl27" style="border-top: medium none; height: 26.25pt; width: 126pt;" height="35">Occurrences | |
| in File</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 269pt;">Finds | |
| all occurrences of the selected Java element in its file</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + U</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Project actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 52.5pt;" height="70"> | |
| <td class="xl28" style="height: 52.5pt; width: 126pt;" height="70">Build All</td> | |
| <td class="xl28" style="border-left: medium none; width: 269pt;">Builds the | |
| all projects in the workspace. This is an incremental build, means that | |
| the builder analyzes the changes since the last time of build and minimizes | |
| the number of changed files.</td> | |
| <td class="xl28" style="border-left: medium none; width: 110pt;">Ctrl + B</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Source actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 13.5pt;" height="18"> | |
| <td class="xl29" style="height: 13.5pt; width: 126pt;" height="18">Comment</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Comments | |
| out all lines containing the current selection.</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">Ctrl + /</td> | |
| </tr> | |
| <tr style="height: 12.75pt;" height="17"> | |
| <td class="xl25" style="border-top: medium none; height: 12.75pt; width: 126pt;" height="17">Uncomment</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Uncomments | |
| all lines containing the current selection.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + \</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Shift | |
| Right</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Increments | |
| the level of indentation of the currently select lines. Only activated when | |
| the selection covers multiple lines or a single whole line.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Tab</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Shift | |
| Left</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Decrements | |
| the level of indentation of the currently select lines. Only activated when | |
| the selection covers multiple lines or a single whole line.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Shift | |
| + Tab</td> | |
| </tr> | |
| <tr style="height: 51pt;" height="68"> | |
| <td class="xl25" style="border-top: medium none; height: 51pt; width: 126pt;" height="68">Format</td> | |
| <td class="xl24" style="border-top: medium none; border-left: medium none; width: 269pt;">Uses | |
| the code formatter to format the current text selection. The formatting | |
| options are configured on the Code Formatter preference page (Window > | |
| Preferences > Java > Code Formatter)</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + F</td> | |
| </tr> | |
| <tr style="height: 140.25pt;" height="187"> | |
| <td class="xl27" style="border-top: medium none; height: 140.25pt; width: 126pt;" height="187">Organize | |
| Imports</td> | |
| <td class="xl31" style="border-left: medium none; width: 269pt;">Organizes | |
| the import declarations in the compilation unit currently open or selected. | |
| Unnecessary import declarations are removed, and required import declarations | |
| are ordered as specified in the Organize Import preference page (Window | |
| > Preferences > Java > Organize Import). Organize import can be | |
| executed on incomplete source and will prompt you when a referenced type | |
| name can not be mapped uniquely to a type in the current project. You can | |
| also organize multiple compilation units by invoking the action on a package | |
| or selecting a set of compilation units.</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Ctrl | |
| + Shift + O</td> | |
| </tr> | |
| <tr style="height: 90pt;" height="120"> | |
| <td class="xl27" style="height: 90pt; width: 126pt;" height="120">Add Import</td> | |
| <td class="xl26" style="width: 269pt;">Creates an import declaration for a | |
| type reference currently selected. If the type reference if qualified, the | |
| qualification will be removed if possible. If the referenced type name can | |
| not be mapped uniquely to a type of the current project you will be prompted | |
| to specify the correct type. Add Import tries to follow the import order | |
| as specified in the Organize Import preference page.</td> | |
| <td class="xl27" style="width: 110pt;">Ctrl + Shift + M</td> | |
| </tr> | |
| </table> | |
| <h3><strong>Refactor actions</strong></h3> | |
| <table width="75%" border="1"> | |
| <tr style="height: 39pt;" height="52"> | |
| <td class="xl29" style="height: 39pt; width: 126pt;" height="52">Undo</td> | |
| <td class="xl29" style="border-left: medium none; width: 269pt;">Does an Undo | |
| of the last refactoring. The refactoring undo buffer is only valid as long | |
| as no other source changes than refactoring have been performed.</td> | |
| <td class="xl29" style="border-left: medium none; width: 110pt;">Alt + Shift | |
| + Z</td> | |
| </tr> | |
| <tr style="height: 38.25pt;" height="51"> | |
| <td class="xl25" style="border-top: medium none; height: 38.25pt; width: 126pt;" height="51">Redo</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Does | |
| a Redo of the last undone refactoring. The refactoring undo/redo buffer | |
| is only valid as long as no other source changes than refactoring have been | |
| performed.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Shift + Y</td> | |
| </tr> | |
| <tr style="height: 89.25pt;" height="119"> | |
| <td class="xl25" style="border-top: medium none; height: 89.25pt; width: 126pt;" height="119">Rename</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the Rename refactoring dialog: Renames the selected element and (if enabled) | |
| corrects all references to the elements (also in other files). Is available | |
| on methods, fields, local variables, method parameters, types, compilation | |
| units, packages, source folders, projects and on a text selection resolving | |
| to one of these element types.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Shift + R</td> | |
| </tr> | |
| <tr style="height: 102pt;" height="136"> | |
| <td class="xl25" style="border-top: medium none; height: 102pt; width: 126pt;" height="136">Move</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the Move refactoring dialog: Moves the selected elements and (if enabled) | |
| corrects all references to the elements (also in other files). Can be applied | |
| to one instance method (which can be moved to a component), one or more | |
| static methods, static fields, types, compilation units, packages, source | |
| folders and projects and on a text selection resolving to one of these element | |
| types.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Shift + V</td> | |
| </tr> | |
| <tr style="height: 51pt;" height="68"> | |
| <td class="xl25" style="border-top: medium none; height: 51pt; width: 126pt;" height="68">Inline</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the Inline refactoring dialog. Inlines local variables, methods or constants. | |
| This refactoring is available on methods, static final fields and text selections | |
| that resolve to methods, static final fields or local variables.</td> | |
| <td class="xl25" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Shift + I</td> | |
| </tr> | |
| <tr style="height: 89.25pt;" height="119"> | |
| <td class="xl27" style="border-top: medium none; height: 89.25pt; width: 126pt;" height="119">Extract | |
| Method</td> | |
| <td class="xl24" style="border-top: medium none; border-left: medium none; width: 269pt;">Starts | |
| the Extract Method refactoring dialog. Creates a new method containing the | |
| statements or expression currently selected and replaces the selection with | |
| a reference to the new method. You can use Expand Selection from the Edit menu to get a | |
| valid selection range. This feature is useful for cleaning up lengthy, cluttered, or overly-complicated methods.</td> | |
| <td class="xl27" style="border-top: medium none; border-left: medium none; width: 110pt;">Alt | |
| + Shift + M</td> | |
| </tr> | |
| <tr class="xl30" style="height: 76.5pt;" height="102"> | |
| <td class="xl25" style="height: 76.5pt; width: 126pt;" height="102">Extract | |
| Local Variable</td> | |
| <td class="xl30" style="width: 269pt;">Starts the Extract Variable refactoring | |
| dialog. Creates a new variable assigned to the expression currently selected | |
| and replaces the selection with a reference to the new variable. This refactoring | |
| is available on text selections that resolve to local variables. You can | |
| use Expand Selection from the Edit menu to get a valid selection range.</td> | |
| <td class="xl25" style="width: 110pt;">Alt + Shift + L</td> | |
| </tr> | |
| </table> | |
| <p> </p> | |
| <p> </p> | |
| <p> </p> | |
| </BODY> | |
| </HTML> |