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