core/com.nokia.carbide.cpp.doc.user/html/tasks/code_style_workspace.htm
author dan.podwall@nokia.com
Mon, 06 Apr 2009 14:56:28 -0500
changeset 56 887bd61e1328
parent 2 d760517a8095
child 1225 a546534a48de
permissions -rw-r--r--
merge from RCL_2_0 to default

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head>
<title>Code Styles preferences</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
   <body>
<h2>Setting the Workspace Code Style</h2>

	  
	 <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>
	 <p align="center"><img src="../reference/images/wnd_pref_code_styles.png" width="627" height="544"></p>
	 <p align="center" class="figure">Figure 1 -Select a profile from the Select a profile list</p>
	 <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 &lt;<i>profile_name</i>&gt;</b> window that appears. </p>
	 <div class="step">
       <h4>To set the workspace code style</h4>
	   <ol>
         <li>Open  the <a href="../reference/wnd_pref_code_style.htm">Code Style</a> preference panel </li>
	     <li>Choose a profile from the Select a profile dropdown list </li>
	     <li>Click OK </li>
       </ol>
   </div>
	 <h5>Related references	 </h5>
	 <ul>
       <li><a href="PLUGINS_ROOT/org.eclipse.cdt.doc.user/reference/cdt_u_c_code_style_pref.htm">Code Style preferences</a></li>
       <li><a href="code_style_reformatting_sources.htm">Reformatting a Source File </a></li>
   </ul>
	 <div id="footer">Copyright &copy; 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>

   </body>
   </html>