## 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 preset code styles like GNU, while Carbide supplies these profiles:

- Symbian OS — settings are based on the Symbian OS C++ coding standards PDF
- S60 — settings are based on the S60 Platform: C++ Coding Conventions

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