File: cdt_t_shift_code.htm

package info (click to toggle)
eclipse-cdt 8.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 150,024 kB
  • ctags: 159,512
  • sloc: java: 1,087,138; xml: 54,281; ansic: 5,236; cpp: 5,123; makefile: 1,338; sh: 189; asm: 42; f90: 22
file content (46 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!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=UTF-8">
<title>Shifting lines of code to the right or left</title>
<link rel="stylesheet" type="text/css" href="../help.css">
</head>

<body>

<div role="main"><h1>Shifting lines of code to the right or left</h1>

<p>You can shift lines of code to the left or right in the C/C++ editor. You can 
change the tab width in the C/C++ editor preferences window. For more 
information, see <a href="cdt_t_cust_cpp_editor.htm">Customizing the C/C++ 
editor</a>.</p>

<p>To shift lines of code to the right or left:</p>

<ol>
  <li>In the C/C++ editor, select the full length of the lines that you want to shift.</li>
  <li>Do one of the following:
  <ul><li>To move the text to the right, press <strong>Tab</strong>.</li>
	<li>To move the text to the right, click <strong>Edit &gt; Shift Right</strong>.</li>
	<li>To move the text to the left, press <strong>Shift+Tab</strong>.</li>
	<li>To move the text to the left, click <strong>Edit &gt; Shift Left</strong>.</li>
  </ul>
  </li>
  </ol>

 <p><img src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21">
<br>
 <a href="../concepts/cdt_o_code_entry.htm">Code entry</a></p>
<p><img src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
<br>
<a href="cdt_t_cust_cpp_editor.htm">Customizing the C/C++ editor</a></p>
<p><img src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
<br>
<a href="../reference/cdt_o_ceditor_pref.htm">C/C++ editor preferences</a></p>
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >

</div></body>

</html>