core/com.nokia.carbide.cpp.doc.user/html/tasks/custom/carb_custom_styles.htm
changeset 1794 70a35950a2e8
child 2131 ff0156b93599
equal deleted inserted replaced
1793:b3fa776e81bd 1794:70a35950a2e8
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 <html>
       
     3 <head>
       
     4 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
       
     5 <meta http-equiv="Content-Style-Type" content="text/css" />
       
     6 <meta name="LASTUPDATED" content="06/17/05 11:09:43" />
       
     7 <title>Customizing Carbide: Code Styles</title>
       
     8 <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
       
     9 <link rel="StyleSheet" href="../../../book.css" type="text/css"/>
       
    10 </head>
       
    11 <body >
       
    12 <h2>Customizing Carbide: Code Styles</h2>
       
    13 <p> You can customize how your source files are automatically formatted by using code styles. Code styles include items like indentation, use of braces or bracketts, whitespace, tab usages, and much more. In addition to supporting a variety of predefined code styles you can also create your own. </p>
       
    14 <p>The change or customize a code style, open the <img src="../../images/command_link.png" border="0" alt="" /> <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=
       
    15 org.eclipse.cdt.internal.ui.preferences.CodeFormatterPreferencePage)")'> Code Style</a> preference panel.</p>
       
    16 <p align="center"><img src="../images/pref_code_style_differences.png" alt="Code Style differences" width="600" height="429"></p>
       
    17 <p>The predefined code styles include:</p>
       
    18 <ul>
       
    19     <li><strong>BSD/Allman</strong> (<em>Eclipse</em>) &ndash; Based on the code style used for the ANSI C standard.</li>
       
    20     <li><strong>GNU</strong> (<em>Eclipse</em>) &ndash; Based on the code style used in for the GNU Coding Standards used by the GNU project.</li>
       
    21     <li><strong>K&amp;R</strong> (<em>Eclipse</em>) &ndash; Based on the code style used in <em>The C Programming Language</em> by Kernighan and Ritchie.</li>
       
    22     <li><strong>S60</strong> &ndash; Based on the code style used in Nokia S60 source code examples.</li>
       
    23     <li><strong>Symbian OS</strong> (<em>default</em>) &ndash; Based on the code style used in Symbian source code examples.</li>
       
    24     <li><strong>Qt</strong> &ndash; Based on the code style used in the Qt source code examples.</li>
       
    25     <li><strong>Whitesmiths</strong> (<em>Eclipse</em>) &ndash; Based on the code style used in documentation for the first commercial C compiler, the Whitesmith's Compiler.</li>
       
    26 </ul>
       
    27 <h4>Other references</h4>
       
    28 <ul>
       
    29     <li><a href="carb_customizing.htm">Customizing Carbide</a></li>
       
    30     <li><a href="http://en.wikipedia.org/wiki/Indent_style#K.26R_style">Indent style</a> (Wikipedia)</li>
       
    31 </ul>
       
    32 <div id="footer">Copyright &copy; 2010 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>
       
    33 
       
    34 </body>
       
    35 </html>