carbidecpp22devenv/configuration/org.eclipse.osgi/bundles/309/1/.cp/reference/cdt_u_c_editor_save_actions.htm
author cawthron
Fri, 04 Dec 2009 10:01:33 -0600
changeset 5 684bf18fdedf
permissions -rw-r--r--
add files for RCL_2_2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     2
<html lang="en">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     3
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     4
<head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     5
	<meta http-equiv="Content-Language" content="en-us">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     6
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     7
	<title>Editor preferences</title>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     8
	<link rel="stylesheet" type="text/css" href="../help.css">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
     9
</head>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    10
<body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    11
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    12
<h1>Save actions</h1>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    13
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    14
<p>Use the <b>Save Actions</b> preference panel to configure actions performed by C/C++ editor while saving
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    15
a file. Click <b>Window &gt; Preferences &gt; C/C++ &gt; Editor &gt; Save Actions</b> to make changes.</p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    16
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    17
<table width="600px" cellpadding="5" cellspacing="0" border="1" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    18
	<caption><b>Editor Preference Options</b></caption>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    19
	<colgroup>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    20
		<col width="30%" valign="top" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    21
		<col width="70%" valign="top" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    22
	</colgroup>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    23
	<tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    24
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    25
			<td><b>Remove trailing whitespace</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    26
			<td>While saving a file, C/C++ editor will remove spaces and tab characters from the end of edited
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    27
			  or all lines.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    28
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    29
		<tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    30
			<td><b>Ensure newline at the end of file</b></td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    31
			<td>While saving a file, C/C++ editor will insert a newline at the end of the last line,
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    32
			  if the last line does not have it already.</td>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    33
		</tr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    34
	</tbody>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    35
</table>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    36
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    37
<p><img border="0" src="../images/ngconcepts.gif" ALT="Related concepts" width="143" height="21"> <br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    38
<a href="../concepts/cdt_o_code_entry.htm">Coding aids</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    39
<p><img border="0" src="../images/ngtasks.gif" ALT="Related tasks" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    40
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    41
<a href="../tasks/cdt_t_cust_cpp_editor.htm">Customizing the C/C++ editor</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    42
<p><img border="0" src="../images/ngref.gif" ALT="Related reference" width="143" height="21">
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    43
<br>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    44
<a href="cdt_o_ceditor_pref.htm">C/C++ editor preferences</a></p>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    45
	<hr>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    46
<img src="../images/ng00_04a.gif" ALT="IBM Copyright Statement" >
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    47
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    48
</body>
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    49
684bf18fdedf add files for RCL_2_2
cawthron
parents:
diff changeset
    50
</html>