2013-02-15 13:50:56 -05:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<title>Source Menu actions</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../help.css">
|
2013-03-13 16:07:05 -04:00
|
|
|
<script type="text/javascript"
|
|
|
|
src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
|
2013-02-15 13:50:56 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div role="main">
|
|
|
|
<h1>Source Menu actions</h1>
|
|
|
|
<p>
|
|
|
|
<img src="../images/cdt_menu_source.png" alt="Selecting Source Menu">
|
|
|
|
</p>
|
|
|
|
<table border="1" cellspacing="0" cellpadding="3">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th id="name">Name</th>
|
|
|
|
<th id="function">Function</th>
|
|
|
|
<th id="keyboard">Keyboard Shortcut</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Toggle Comment</td>
|
|
|
|
<td headers="function">Add or remove single-line, C++-style,
|
|
|
|
comment markers on each line in the selection, or the line
|
|
|
|
containing the cursor, if there is no selection</td>
|
|
|
|
<td headers="keyboard">Ctrl+/</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Add Block Comment</td>
|
|
|
|
<td headers="function">Add a block comment around the
|
|
|
|
selection</td>
|
|
|
|
<td headers="keyboard">Ctrl+Shift+/</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Remove Block Comment</td>
|
|
|
|
<td headers="function">If the selection contains one or more
|
|
|
|
block comments, remove them</td>
|
|
|
|
<td headers="keyboard">Ctrl+Shift+\</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Shift Right</td>
|
|
|
|
<td headers="function">Increase indentation on each line in
|
|
|
|
the selection, or the line containing the cursor, if there is no
|
|
|
|
selection</td>
|
|
|
|
<td headers="keyboard"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Shift Left</td>
|
|
|
|
<td headers="function">Decrease indentation on each line in
|
|
|
|
the selection, or the line containing the cursor, if there is no
|
|
|
|
selection</td>
|
|
|
|
<td headers="keyboard">Shift+Tab</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Correct Indentation</td>
|
|
|
|
<td headers="function">Apply simple indentation rules to the
|
|
|
|
current selection, or the line containing the cursor, if there is
|
|
|
|
no selection</td>
|
|
|
|
<td headers="keyboard">Ctrl+I</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Format</td>
|
2013-03-13 16:07:05 -04:00
|
|
|
<td headers="function">Apply the full <a class="command-link"
|
|
|
|
href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.CodeFormatterPreferencePage)")'>
|
|
|
|
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png"
|
|
|
|
alt="command link" />C/C++ > Code Style > Formatter
|
|
|
|
</a> preferences to the entire contents of the active editor, or to the
|
|
|
|
selection if there is one
|
2013-02-15 13:50:56 -05:00
|
|
|
</td>
|
|
|
|
<td headers="keyboard">Ctrl+Shift+F</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Add Include</td>
|
|
|
|
<td headers="function">Add an include statement and,
|
|
|
|
optionally, a "using" declaration for the currently selected name</td>
|
|
|
|
<td headers="keyboard">Ctrl+Shift+N</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Sort Lines</td>
|
|
|
|
<td headers="function">Sort the selected lines</td>
|
|
|
|
<td headers="keyboard">Ctrl+Alt+S</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Implement Method...</td>
|
|
|
|
<td headers="function">Open the Implement Method dialog</td>
|
|
|
|
<td headers="keyboard"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Generate Getters and
|
|
|
|
Setters...</td>
|
|
|
|
<td headers="function">Open the Generate Getters and Setters
|
|
|
|
dialog that allows you to create Getters and Setters for fields in
|
|
|
|
the current type. Available on fields and types or on a text
|
|
|
|
selection inside a type</td>
|
|
|
|
<td headers="keyboard"> </td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="menu_name" headers="name">Surround With</td>
|
|
|
|
<td headers="function">Surround the selected statements with a
|
2013-03-13 16:07:05 -04:00
|
|
|
code template (as defined in <a class="command-link"
|
|
|
|
href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.TemplatePreferencePage)")'>
|
|
|
|
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png"
|
|
|
|
alt="command link" />C/C++ > Editor > Templates
|
|
|
|
</a>)
|
|
|
|
</td>
|
2013-02-15 13:50:56 -05:00
|
|
|
<td headers="keyboard">Alt+Shift+Z</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<img src="../images/intl_07.gif" alt="Intel Copyright Statement">
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|