core/com.nokia.carbide.cpp.doc.user/html/tasks/custom/carb_custom_styles.htm
author fturovic <frank.turovich@nokia.com>
Wed, 06 Oct 2010 10:31:32 -0500
changeset 2131 ff0156b93599
parent 1794 70a35950a2e8
permissions -rw-r--r--
moved inf, mmp, remote conn, and views to project folder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1794
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     2
<html>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     3
<head>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     4
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     5
<meta http-equiv="Content-Style-Type" content="text/css" />
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     6
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     7
<title>Customizing Carbide: Code Styles</title>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     8
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
     9
<link rel="StyleSheet" href="../../../book.css" type="text/css"/>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    10
</head>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    11
<body >
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    12
<h2>Customizing Carbide: Code Styles</h2>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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=
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    15
org.eclipse.cdt.internal.ui.preferences.CodeFormatterPreferencePage)")'> Code Style</a> preference panel.</p>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    16
<p align="center"><img src="../images/pref_code_style_differences.png" alt="Code Style differences" width="600" height="429"></p>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    17
<p>The predefined code styles include:</p>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    18
<ul>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    19
    <li><strong>BSD/Allman</strong> (<em>Eclipse</em>) &ndash; Based on the code style used for the ANSI C standard.</li>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    22
    <li><strong>S60</strong> &ndash; Based on the code style used in Nokia S60 source code examples.</li>
2131
ff0156b93599 moved inf, mmp, remote conn, and views to project folder
fturovic <frank.turovich@nokia.com>
parents: 1794
diff changeset
    23
    <li><strong>Symbian</strong> (<em>default</em>) &ndash; Based on the code style used in Symbian source code examples.</li>
1794
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    24
    <li><strong>Qt</strong> &ndash; Based on the code style used in the Qt source code examples.</li>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    26
</ul>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    27
<h4>Other references</h4>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    28
<ul>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    29
    <li><a href="carb_customizing.htm">Customizing Carbide</a></li>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    30
    <li><a href="http://en.wikipedia.org/wiki/Indent_style#K.26R_style">Indent style</a> (Wikipedia)</li>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    31
</ul>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    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>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    33
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    34
</body>
70a35950a2e8 expanded customize carbide pages
fturovic <frank.turovich@nokia.com>
parents:
diff changeset
    35
</html>