core/com.nokia.carbide.cpp.doc.user/html/reference/wnd_pref_code_style.htm
author fturovic <frank.turovich@nokia.com>
Mon, 10 Aug 2009 15:21:12 -0500
changeset 400 9b005a8e6778
parent 0 fb279309251b
child 804 baeb49a4a487
child 819 8121a281245c
permissions -rw-r--r--
removed duplicate pages, unused images, and fixed links to same

<!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>Code Styles preferences</h2>

	  
	 <p>Carbide supports the use of code styles in projects via the C/C++  <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. Use a code style profile to set specific smart typing features, like indentation, tabs or spaces, and many more options. There are several preset code styles like GNU, while Carbide supplies these  profiles:</p>
	 <ul>
	   <li><b>Symbian OS</b> &#8212; settings are based on the <a href="http://developer.symbian.com/main/downloads/papers/coding_stds/2003-01_SyOSCodStn.pdf">Symbian OS C++ coding standards</a> PDF </li>
	   <li><b>S60</b> &#8212; settings are based on the <a href="http://www.forum.nokia.com/info/sw.nokia.com/id/577f8188-14b6-44f2-997e-28724145e726/S60_Platform_Cpp_Coding_Conventions_v2_0_en.pdf.html">S60 Platform: C++ Coding Conventions</a> PDF </li>
   </ul>
	 <p>Setting a code style sets it for the entire workspace. When a new file is created the currently selected code style rules are applied as you edit the file. You can apply a set of rules to a previously created source file by opening it in an editor view, then right-clicking and choosing <b>Source &gt; Format</b> (<span class="code">CTRL+SHIFT+F</span>). </p>
	 <p align="center"><img src="images/wnd_pref_code_styles.png" width="627" height="544" /></p>
	 <p align="center" class="figure">Figure 1 - Code Style preference panel </p>
	 <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="../tasks/code_style_workspace.htm">Setting the Workspace Code Style</a> </li>
       <li><a href="../tasks/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>