1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 05:45:58 +02:00

Bug 400955: update Edit menu docs

Change-Id: I743c5ca8a412eb059bba478aaecc223dd04b2080
Reviewed-on: https://git.eclipse.org/r/10541
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
Jesse Weinstein 2013-02-15 13:50:56 -05:00 committed by Sergey Prigogin
parent b502c8ab5d
commit 3fc0510ecd
2 changed files with 208 additions and 186 deletions

BIN
doc/org.eclipse.cdt.doc.user/images/cdt_menu_edit.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 47 KiB

366
doc/org.eclipse.cdt.doc.user/reference/cdt_u_m_edit.htm Normal file → Executable file
View file

@ -1,6 +1,5 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@ -8,189 +7,212 @@
<link rel="stylesheet" type="text/css" href="../help.css"> <link rel="stylesheet" type="text/css" href="../help.css">
</head> </head>
<body> <body>
<div role="main"><h1>Edit Menu actions</h1> <div role="main">
<h1>Edit Menu actions</h1>
<p><img src="../images/cdt_menu_edit.png" alt="Selecting Edit Menu" ></p> <p>
<p> <img src="../images/cdt_menu_edit.png" alt="Selecting Edit Menu">
<table border="1" cellspacing="0" cellpadding="3"> <tbody> </p>
<tr> <table class="menu" border="1" cellspacing="0" cellpadding="3">
<thead>
<tr>
<th id="name">Name</th> <th id="name">Name</th>
<th id="function">Function</th> <th id="function">Function</th>
<th id="keyboard">Keyboard Shortcut</th> <th id="keyboard">Keyboard Shortcut</th>
</tr>
<tr style="text-align:left" valign="top">
<td style="text-align:left" valign="top" headers="name"><strong>Undo</strong></td>
<td style="text-align:left" valign="top" headers="function">Revert the last change in the editor</td>
<td headers="keyboard"> Ctrl+Z</td>
</tr>
<tr>
<td style="text-align:left" valign="top" headers="name"><strong>Redo </strong></td>
<td style="text-align:left" valign="top" headers="function">Revert an undone change</td>
<td headers="keyboard"> Ctrl+Y</td>
</tr> </tr>
</thead>
<tr> <tbody>
<td style="text-align:left" valign="top" headers="name"><strong>Cut</strong></td> <tr>
<td style="text-align:left" valign="top" headers="function">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="menu_name" headers="name">Undo</td>
<td headers="keyboard"> Ctrl+X</td> <td headers="function">Revert the last change made in the
</tr> editor</td>
<td headers="keyboard">Ctrl+Z</td>
<tr>
<td style="text-align:left" valign="top" headers="name"><strong>Copy</strong></td>
<td style="text-align:left" valign="top" headers="function">Copies the currently selected text or elements to the clipboard</td>
<td headers="keyboard"> Ctrl+C</td>
</tr>
<tr>
<td style="text-align:left" valign="top" headers="name"><strong>Paste </strong></td>
<td style="text-align:left" valign="top" headers="function">Paste the current content as text to the editor, or as a sibling or child element to the a currently selected element.&nbsp;</td>
<td headers="keyboard"> Ctrl+V</td>
</tr>
<tr>
<td headers="name"><strong>Delete </strong></td>
<td headers="function">Delete the current text or element selection.</td>
<td headers="keyboard"> Delete</td>
</tr>
<tr style="text-align:left" valign="top">
<td headers="name"><strong>Select All</strong></td>
<td headers="function">Select all the editor content..</td>
<td headers="keyboard"> Ctrl+A</td>
</tr>
<tr style="text-align:left" valign="top">
<td headers="name"><strong>Find / Replace</strong></td>
<td headers="function">Open the Find / Replace dialog. Editor only.</td>
<td headers="keyboard"> Ctrl+F</td>
</tr> </tr>
<tr>
<tr style="text-align:left" valign="top"> <td class="menu_name" headers="name">Redo</td>
<td headers="name"><strong>Find Next</strong></td> <td headers="function">Redo a change previously reverted with
<td headers="function">Finds the next occurrence of the currently selected text. Editor only.</td> Undo</td>
<td headers="keyboard"> Ctrl+K</td> <td headers="keyboard">Ctrl+Y</td>
</tr>
<tr>
<td headers="name"><strong>Find Previous</strong></td>
<td headers="function">Finds the previous occurrence of the currently selected text. Editor only.</td>
<td headers="keyboard"> Ctrl+Shift+K</td>
</tr>
<tr>
<td headers="name"><strong>Incremental Find Next</strong></td>
<td headers="function">Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only.</td>
<td headers="keyboard"> Ctrl+J</td>
</tr>
<tr>
<td headers="name"><strong>Incremental Find Previous</strong></td>
<td headers="function">Starts the incremental find mode. After invocation, enter the search text as instructed in the status bar. Editor only.</td>
<td headers="keyboard"> Ctrl+Shift+J</td>
</tr>
<tr style="text-align:left" valign="top">
<td headers="name"><strong>Add Bookmark...</strong></td>
<td headers="function">Add a bookmark to the current text selection or selected element.</td>
<td headers="keyboard">&nbsp; </td>
</tr> </tr>
<tr>
<tr style="text-align:left" valign="top"> <td class="menu_name" headers="name">Cut</td>
<td headers="name"><strong>Add Task...</strong></td> <td headers="function">Copy the currently selected text to the
<td headers="function">Add a user defined task to the current text selection or selected element.</td> clipboard and remove it from the editor</td>
<td headers="keyboard"> Alt+Enter</td> <td headers="keyboard">Ctrl+X</td>
</tr> </tr>
<tr>
<tr style="text-align:left" valign="top"> <td class="menu_name" headers="name">Copy</td>
<td headers="name"><strong>Add to working set</strong></td> <td headers="function">Copy the currently selected text to the
<td headers="function">Add current resource to selected Working Set</td> clipboard</td>
<td headers="keyboard"> Ctrl+I</td> <td headers="keyboard">Ctrl+C</td>
</tr> </tr>
<tr>
<tr> <td class="menu_name" headers="name">Paste</td>
<td headers="name"><strong>Remove from working set</strong></td> <td headers="function">Paste the contents of the clipboard, as
<td headers="function">Remove current resource from Working Set</td> text, to the currently active editor window</td>
<td headers="keyboard"> Ctrl+Shift+I</td> <td headers="keyboard">Ctrl+V</td>
</tr> </tr>
<tr>
<tr> <td class="menu_name" headers="name">Delete</td>
<td headers="name"><strong>Smart Insert Mode</strong></td> <td headers="function">Delete the currently selected text</td>
<td headers="function">Toggles editor's Smart Insert Mode</td> <td headers="keyboard">Delete</td>
<td headers="keyboard"> Ctrl+Shift+Insert</td> </tr>
</tr> <tr>
<td class="menu_name" headers="name">Select All</td>
<tr> <td headers="function">Select all the text in the currently
<td headers="name"><strong>Show Tooltip Description</strong></td> active editor window</td>
<td headers="function">Displays tooltip description, where applicable.</td> <td headers="keyboard">Ctrl+A</td>
</tr>
<tr>
<td rowspan="5" class="menu_name" headers="name">Expand
Selection To</td>
<td headers="function"><p>Expand the selection (or create
a selection starting from the cursor) in the following ways:</p></td>
<td headers="keyboard">Alt+Shift+<i>Arrow Keys</i></td>
</tr>
<tr>
<td headers="function">
<dl>
<dt>Enclosing Element</dt>
<dd>Add the enclosing expression or block to the selection
(It relies on the embedded parser, so may fail when syntax
errors are present.)</dd>
</dl>
</td>
<td headers="keyboard">Alt+Shift+Up</td>
</tr>
<tr>
<td headers="function">
<dl>
<dt>Next Element</dt>
<dd>Add the following element to the selection</dd>
</dl>
</td>
<td headers="keyboard">Alt+Shift+Right</td>
</tr>
<tr>
<td headers="function">
<dl>
<dt>Previous Element</dt>
<dd>Add the preceding element to the selection</dd>
</dl>
</td>
<td headers="keyboard">Alt+Shift+Left</td>
</tr>
<tr>
<td headers="function">
<dl>
<dt>Restore Last Selection</dt>
<dd>
Restores the previous selection after an invocation of <strong>Expand
Selection To</strong>.
</dd>
</dl>
</td>
<td headers="keyboard">Alt+Shift+Down</td>
</tr>
<tr>
<td class="menu_name" headers="name">Find / Replace...</td>
<td headers="function">Open the basic in-editor Find / Replace
dialog</td>
<td headers="keyboard">Ctrl+F</td>
</tr>
<tr>
<td class="menu_name" headers="name">Find Word</td>
<td headers="function">Find the next occurrence of either the
word containing the cursor, or the first word of the current
selection, if it covers multiple words (Added for Visual Studio
compatibility.)</td>
<td headers="keyboard">&nbsp;</td>
</tr>
<tr>
<td class="menu_name" headers="name">Find Next</td>
<td headers="function">Find the next occurrence of the
currently selected text, or the last text searched for, if there
is no selection</td>
<td headers="keyboard">Ctrl+K</td>
</tr>
<tr>
<td class="menu_name" headers="name">Find Previous</td>
<td headers="function">Find the previous occurrence of the
currently selected text, or the last text searched for, if there
is no selection</td>
<td headers="keyboard">Ctrl+Shift+K</td>
</tr>
<tr>
<td class="menu_name" headers="name">Incremental Find Next</td>
<td headers="function">Start the incremental find mode
(Whatever is typed afterward will be searched for.)</td>
<td headers="keyboard">Ctrl+J</td>
</tr>
<tr>
<td class="menu_name" headers="name">Incremental Find Previous</td>
<td headers="function">Start the incremental find mode,
looking backward</td>
<td headers="keyboard">Ctrl+Shift+J</td>
</tr>
<tr>
<td class="menu_name" headers="name">Add Bookmark...</td>
<td headers="function">Add a bookmark pointing to the current
cursor position or selected text</td>
<td headers="keyboard">&nbsp;</td>
</tr>
<tr>
<td class="menu_name" headers="name">Add Task...</td>
<td headers="function">Add a user defined task located at the
current line</td>
<td headers="keyboard">&nbsp;</td>
</tr>
<tr>
<td class="menu_name" headers="name">Smart Insert Mode</td>
<td headers="function">Toggle the Smart Insert mode (i.e. the
auto-completion features defined in <strong>C/C++ &gt;
Editor &gt; Typing</strong>)
</td>
<td headers="keyboard">Ctrl+Shift+Insert</td>
</tr>
<tr>
<td class="menu_name" headers="name">Show Tooltip Description</td>
<td headers="function">Display the tooltip appropriate to the
cursor position.</td>
<td headers="keyboard">F2</td> <td headers="keyboard">F2</td>
</tr> </tr>
<tr>
<tr> <td class="menu_name" headers="name">Word Completion</td>
<td headers="name"><strong>Word Completion</strong></td> <td headers="function">Complete the word containing the cursor
<td headers="function">Completes current word in editor.</td> using the next available completion (Invoke it repeatedly to cycle
through them.)</td>
<td headers="keyboard">Alt+/</td> <td headers="keyboard">Alt+/</td>
</tr> </tr>
<tr>
<tr> <td class="menu_name" headers="name">Quick Fix</td>
<td headers="name"><strong>Quick fix</strong></td> <td headers="function">Display the Quick Fix dialog
<td headers="function">Call quick fix dialog for selected warning/error.</td> appropriate to the cursor position.</td>
<td headers="keyboard"> Ctrl+1</td> <td headers="keyboard">Ctrl+1</td>
</tr> </tr>
<tr>
<tr> <td class="menu_name" headers="name">Content Assist</td>
<td headers="name"><strong>Content Assist</strong></td> <td headers="function">Display the Content Assist dialog
<td headers="function">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 appropriate to the cursor position (Invoke it repeatedly to cycle
<strong>Window &gt; Preferences &gt; C/C++ &gt; Editor &gt; Templates</strong> and go to the Editor preference page through the available proposal types.)</td>
<strong>Window &gt; Preferences &gt; C/C++ &gt; Editor &gt; Content Assist</strong> for configuring the behavior of content assist.</td> <td headers="keyboard">Ctrl+Space</td>
<td headers="keyboard"> Ctrl+Space</td> </tr>
</tr> <tr>
<td class="menu_name" headers="name">Parameter Hints</td>
<tr> <td headers="function">When invoked in a parameter list,
<td headers="name"><strong>Parameter Hints</strong></td> display the possible signatures in a tooltip</td>
<td headers="function">Opens Parameter Hints dialog. Editor only</td>
<td headers="keyboard">Ctrl+Shift+Space</td> <td headers="keyboard">Ctrl+Shift+Space</td>
</tr> </tr>
<tr>
<td class="menu_name" headers="name">Set Encoding...</td>
<tr style="text-align:left" valign="top"> <td headers="function">Display a dialog in which the active
<td headers="name"><strong>Shift Right</strong></td> editor's encoding can be specified</td>
<td headers="function">Shifts text Right. Editor only</td>
<td headers="keyboard">&nbsp;</td>
</tr>
<tr>
<td headers="name"><strong>Shift Left</strong></td>
<td headers="function">Shifts text Right. Editor only</td>
<td headers="keyboard">&nbsp;</td>
</tr>
<tr>
<td headers="name"><strong>Format</strong></td>
<td headers="function">Formats text. Editor only</td>
<td headers="keyboard">Ctrl+Shift+F</td>
</tr>
<tr>
<td headers="name"><strong>Add Include</strong></td>
<td headers="function">Add include to current file. Editor only </td>
<td headers="keyboard">Ctrl+Shift+N</td>
</tr>
<tr>
<td headers="name"><strong>Set Encoding... </strong></td>
<td headers="function">Toggles the encoding of the currently shown text content.</td>
<td headers="keyboard">&nbsp;</td> <td headers="keyboard">&nbsp;</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<p></p> <p>
<img alt="IBM Copyright Statement" src="../images/ng00_04a.gif">
</p>
<p><strong>Note: </strong> Other <strong>Edit</strong> options are used with the JDT. Refer to the <em>Java Development User Guide</em> for details. </p> </div>
</body>
<p>
<IMG alt="IBM Copyright Statement" src="../images/ng00_04a.gif" border=0>
</p>
</div></body>
</html> </html>