blob: 028f95ffaab561843ea65c0d86d2d1fa3ec2452d [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 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">
<meta name="GENERATOR" content="Mozilla/4.76 [en] (Windows NT 5.0; U) [Netscape]">
<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">
<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&nbsp;
</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>
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.&nbsp;
</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>
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>&nbsp;
</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>
Alt + Enter
</td>
</tr>
<tr align="left" valign="top">
<td>
Expand Selection to
</td>
<td>
<ul>
<li>
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)
</li>
<li>
Next Element: Selects the current and next element. (Arrow Right)
</li>
<li>
Previous Element: Selects the current and the previous element (Arrow Left)
</li>
<li>
Restore Last Selection: After an invocation of&nbsp;<em>Expand Selection to</em> restore the previous selection. (Arrow Down)
</li>
</ul>
</td>
<td>
Alt + Shift + Arrow Keys
</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 context assist dialog at the current cursor position to bring up Java code assist proposals and templates. See the <a href=
"ref-preferences-templates.htm">Templates preference page</a> for available templates (Window &gt; Preferences &gt; Java &gt; Editor &gt; Templates) and go to the <a href=
"ref-21.htm">Java Editor preference page</a> (Window &gt; Preferences &gt; Java &gt; Editor &gt; Code Assist) for configuring the behavior of code assist.
</td>
<td>
Ctrl + Space
</td>
</tr>
<tr>
<td>
Quick Fix
</td>
<td>
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.&nbsp;
</td>
<td>
Ctrl + 1
</td>
</tr>
<tr>
<td>
Parameter Hints
</td>
<td>
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>
Ctrl + Shift + Space
</td>
</tr>
<tr>
<td>
Encoding
</td>
<td>
Toggles the encoding of the currently shown text content.
</td>
<td>&nbsp;
</td>
</tr>
</tbody>
</table>
<p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0">
</p>
<p>
<a href="../concepts/concepts-7.htm">Java editor</a><br>
<a href="../concepts/concepts-1.htm">Java development tools (JDT)</a>
</p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks">
</p>
<p>
<a href="../tasks/tasks-54.htm">Using the Java editor</a><br>
<a href="../tasks/tasks-175.htm">Using Quick Fix</a>
</p>
<p>
<img border="0" src="../images/ngrelr.png" alt="Related reference">
</p>
<p>
<a href="ref-java-editor.htm">Java editor</a><br>
<a href="ref-21.htm">Java editor preferences</a><br>
<a href="ref-view-outline.htm">Java outline</a><br>
<a href="ref-24.htm">Views and editors</a>
</p>
</body>
</html>