## Customizing Carbide: Code Styles

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.

The change or customize a code style, open the Code Style preference panel.

The predefined code styles include:

- BSD/Allman (Eclipse) – Based on the code style used for the ANSI C standard.
- GNU (Eclipse) – Based on the code style used in for the GNU Coding Standards used by the GNU project.
- K&R (Eclipse) – Based on the code style used in The C Programming Language by Kernighan and Ritchie.
- S60 – Based on the code style used in Nokia S60 source code examples.
- Symbian (default) – Based on the code style used in Symbian source code examples.
- Qt – Based on the code style used in the Qt source code examples.
- Whitesmiths (Eclipse) – Based on the code style used in documentation for the first commercial C compiler, the Whitesmith's Compiler.

#### Other references

- Customizing Carbide
- Indent style (Wikipedia)