Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 2df5e41cc8a48658574d160fedbe762d2ec61e3e (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html lang="en">

<head>
	<meta http-equiv="Content-Language" content="en-us">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Code Style preferences</title>
	<link rel="stylesheet" type="text/css" href="../help.css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
</head>
<body>

<h1>Code Style preferences</h1>

<p>Use the <img src="../images/command_link.png" border="0" alt="" /> <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.CodeFormatterPreferencePage)")'>Code Style</a> preference panel to configure your global code style profiles for smart typing features, like auto-indentation and formatting. Click <strong>Window &gt; Preferences &gt; C/C++ &gt; Code Style</strong> to make changes.</p>
<p><img src="../images/code_style_preferences.png"  alt="Code Style Preferences"></p>
<table border="1" cellspacing="0" cellpadding="5" width="600" summary="All options">
	<caption><strong>Code Style Preference Options</strong></caption>
	<colgroup>
		<col width="30%" valign="top" >
		<col width="70%" valign="top" >
	</colgroup>
	<thead>
		<tr>
			<th><strong>Option</strong></th>
			<th><strong>Description</strong></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td valign="top" width="35%">
			<strong>Configure Project Specific Settings...</strong>
			</td>
			<td valign="top">
			Opens the <strong>Project Specific Configuration</strong> dialog box to select a project to apply code style settings.
			</td>
		</tr>
		<tr>
			<td valign="top" width="35%">
			<strong>Edit...</strong>
			</td>
			<td valign="top">
			Shows a dialog which displays the settings stored in the active profile. Only user-defined profiles can be modified.
			</td>
		</tr>
		<tr>
			<td valign="top" width="35%">
			<strong>Remove</strong>
			</td>
			<td valign="top">
			Removes the selected profile. This action is only available on user-defined profiles.
			</td>
		</tr>
		<tr>
			<td valign="top" width="35%">
			<strong>New...</strong>
			</td>
			<td valign="top">
			Shows the dialog to create a new profile. The dialog requires you to enter a name for the new profile. Additionally, you may select a built-in or user-defined existing profile to base your new profile on.
			</td>
		</tr>
		<tr>
			<td valign="top" width="35%">
			<strong>Import...</strong>
			</td>
			<td valign="top">
			Imports profiles from the file system.
			</td>
		</tr>
	</tbody>
</table>

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

</body>

</html>

Back to the top