## Code Styles preferences

Carbide supports the use of code styles in projects via the C/C++ Code Style 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 built-in code styles like GNU, Whitesmith, and others, while Carbide supplies these additional styles:

- Symbian OS — settings are based on the Symbian OS C++ coding standards
- S60 — settings are based on the C++ Developer's Library > C++ Coding Conventions
- Qt — settings for Qt projects

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 Source > Format (CTRL+SHIFT+F).

Figure 1 - Code Style preference panel

##### Related references

- Code Style preferences
- Setting the Workspace Code Style
- Reformatting a Source File