2
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head>
|
|
2 |
<title>Code Styles preferences</title>
|
|
3 |
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
|
|
4 |
</head>
|
|
5 |
<body>
|
|
6 |
<h2>Setting the Workspace Code Style</h2>
|
|
7 |
|
|
8 |
|
|
9 |
<p>You can set the default code style for a workspace using the <img src="../images/command_link.png" alt="" width="16" height="12" border="0" /> <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.ui.preferences.CodeFormatterPreferencePage)")'> Code Style</a> preference panel. Once set, the specified code style is applied to all new files and projects created in the workspace. To update a source file already in the workspace, see <a href="code_style_reformatting_sources.htm">Reformatting a Source File</a>.</p>
|
|
10 |
<p align="center"><img src="../reference/images/wnd_pref_code_styles.png" width="627" height="544"></p>
|
|
11 |
<p align="center" class="figure">Figure 1 -Select a profile from the Select a profile list</p>
|
|
12 |
<p align="left">You can also create your own profiles based on the one's included with Carbide. Simply click <b>Edit</b> and change the options presented in the <b>Profile <<i>profile_name</i>></b> window that appears. </p>
|
|
13 |
<div class="step">
|
|
14 |
<h4>To set the workspace code style</h4>
|
|
15 |
<ol>
|
|
16 |
<li>Open the <a href="../reference/wnd_pref_code_style.htm">Code Style</a> preference panel </li>
|
|
17 |
<li>Choose a profile from the Select a profile dropdown list </li>
|
|
18 |
<li>Click OK </li>
|
|
19 |
</ol>
|
|
20 |
</div>
|
|
21 |
<h5>Related references </h5>
|
|
22 |
<ul>
|
|
23 |
<li><a href="PLUGINS_ROOT/org.eclipse.cdt.doc.user/reference/cdt_u_c_code_style_pref.htm">Code Style preferences</a></li>
|
|
24 |
<li><a href="code_style_reformatting_sources.htm">Reformatting a Source File </a></li>
|
|
25 |
</ul>
|
|
26 |
<div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
|
|
27 |
|
|
28 |
</body>
|
|
29 |
</html>
|
|
30 |
|