| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html lang="en"> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. 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"> |
| <title> |
| Edit actions |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Edit actions |
| </h1> |
| <p> |
| Edit menu commands shown when a Java editor is visible: |
| </p> |
| <table border="1" cellspacing="0" cellpadding="5" summary="Edit actions"> |
| <tbody> |
| <tr> |
| <th> |
| <p> |
| Name |
| </p> |
| </th> |
| <th> |
| <p> |
| Function |
| </p> |
| </th> |
| <td> |
| <strong>Keyboard Shortcut</strong> |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td align="left" valign="top"> |
| <p> |
| Undo |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Revert the last change in the editor |
| </p> |
| </td> |
| <td> |
| Ctrl + Z |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Redo |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Revert an undone change |
| </p> |
| </td> |
| <td> |
| Ctrl + Y |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Cut |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| 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. |
| </p> |
| </td> |
| <td> |
| Ctrl + X |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Copy |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Copies the currently selected text or elements to the clipboard |
| </p> |
| </td> |
| <td> |
| Ctrl + C |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Copy Qualified Name |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Copies the fully qualified name of the currently selected element to the clipboard |
| </p> |
| </td> |
| <td> |
| |
| </td> |
| </tr> |
| <tr> |
| <td align="left" valign="top"> |
| <p> |
| Paste |
| </p> |
| </td> |
| <td align="left" valign="top"> |
| <p> |
| Paste the current content as text to the editor, or as a sibling or child element to the a currently selected element. |
| </p> |
| </td> |
| <td> |
| Ctrl + V |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Delete |
| </td> |
| <td> |
| Delete the current text or element selection. |
| </td> |
| <td> |
| Delete |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td> |
| Select All |
| </td> |
| <td> |
| Select all the editor content. |
| </td> |
| <td> |
| Ctrl + A |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td> |
| Expand Selection To |
| </td> |
| <td> |
| <ul> |
| <li> |
| Enclosing Element: Selects the enclosing expression, block, or 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) |
| </li> |
| <li> |
| Next Element: Selects the current and next elements. (Arrow Right) |
| </li> |
| <li> |
| Previous Element: Selects the current and previous elements. (Arrow Left) |
| </li> |
| <li> |
| Restore Last Selection: Restores the previous selection after an invocation of <em>Expand Selection To</em>. (Arrow Down) |
| </li> |
| </ul> |
| </td> |
| <td> |
| Alt + Shift + Arrow Keys |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td> |
| Find / Replace |
| </td> |
| <td> |
| Open the Find / Replace dialog. Editor only. |
| </td> |
| <td> |
| Ctrl + F |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td> |
| Find Next |
| </td> |
| <td> |
| Finds the next occurrence of the currently selected text. Editor only. |
| </td> |
| <td> |
| Ctrl + K |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Find Previous |
| </td> |
| <td> |
| Finds the previous occurrence of the currently selected text. Editor only. |
| </td> |
| <td> |
| Ctrl + Shift + K |
| </td> |
| </tr> |
| |
| <tr> |
| <td> |
| Incremental Find Next |
| </td> |
| <td> |
| Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only. |
| </td> |
| <td> |
| Ctrl + J |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Incremental Find Previous |
| </td> |
| <td> |
| Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only. |
| </td> |
| <td> |
| Ctrl + Shift + J |
| </td> |
| </tr> |
| |
| <tr align="left" valign="top"> |
| <td> |
| Add Bookmark |
| </td> |
| <td> |
| Add a bookmark to the current text selection or selected element. |
| </td> |
| <td> |
| |
| </td> |
| </tr> |
| <tr align="left" valign="top"> |
| <td> |
| Add Task |
| </td> |
| <td> |
| Add a user defined task to the current text selection or selected element. |
| </td> |
| <td> |
| |
| </td> |
| </tr> |
| |
| <tr> |
| <td> |
| Smart Insert Mode |
| </td> |
| <td> |
| Toggles the Insert Mode. When smart insert mode is disabled, typing aids like |
| automatic indentation, closing of brackets etc. are disabled. |
| </td> |
| <td> |
| Ctrl + Shift + Insert |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Show Tooltip Description |
| </td> |
| <td> |
| 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> |
| F2 |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Content Assist |
| </td> |
| <td> |
| Opens a content assist dialog at the current cursor position. |
| By default content assist supports five different categories of |
| proposals. |
| <ol> |
| <li>Default - union all of proposals</li> |
| <li>Type Proposals <i>(e.g. java.lang.String, List)</i></li> |
| <li>Other Java Proposals <i>(e.g. method or field names)</i></li> |
| <li>Template Proposals <i>(e.g. 'iterate over array' template)</i></li> |
| <li>Word Proposals <i>(Proposes words which have been typed already)</i></li> |
| </ol> |
| <p> |
| See the <a href="preferences/java/ref-preferences-editor.htm">Java Editor preference page</a> |
| for configuring the behavior of code assist and the contents of the <em>Default</em> proposal category. |
| </p><p> |
| See the <a href="preferences/java/editor/ref-preferences-templates.htm">Templates preference page</a> |
| for available templates.</p> |
| </td> |
| <td> |
| Ctrl + Space |
| </td> |
| </tr> |
| <!--tr> |
| <td> |
| Parameter Hints |
| </td> |
| <td> |
| Shows parameter type information if the cursor is within the argument list of a method call. The parameter information for the argument at the |
| cursor location is shown in bold. |
| </td> |
| <td> |
| Ctrl + Shift + Space |
| </td> |
| </tr --> |
| <tr> |
| <td>Word Completion</td> |
| <td>Proposes word completions for the current string based on all words |
| found in any open editor. Works in all text based editors.</td> |
| <td>Alt + /</td> |
| </tr> |
| <tr> |
| <td> |
| Quick Fix |
| </td> |
| <td> |
| Opens a dialog with possible solutions if the cursor is located near a problem indication. |
| </td> |
| <td> |
| Ctrl + 1 |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Set Encoding |
| </td> |
| <td> |
| Toggles the encoding of the currently shown text content. |
| </td> |
| <td> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <h3 class="related">Related concepts</h3> |
| <a href="../concepts/concept-java-editor.htm">Java editor</a><br> |
| <a href="../concepts/concept-jdt.htm">Java development tools (JDT)</a> |
| <h3 class="related">Related references</h3> |
| <a href="views/ref-java-editor.htm">Java editor</a><br> |
| <a href="preferences/java/ref-preferences-editor.htm">Java editor preferences</a><br> |
| <a href="views/ref-view-outline.htm">Java outline</a><br> |
| <a href="views/ref-viewsandeditors.htm">Views and editors</a> |
| </body> |
| </html> |
| |