# Predefined code styles

For C/C++ and JavaScript, you can copy code style settings from the predefined styles. Note that predefined styles affect only certain base settings and leaves the rest unchanged.

Procedure:

1. Go to `Settings | Editor | Code Style` and select the language (C/C++ or JavaScript).

2. Click the Set from link in the upper-right corner.

3. Select the code style to copy the settings from:

![Using code style settings from predefined guidelines](https://resources.jetbrains.com/help/img/idea/2026.2/cl_codestyles_qsg.png)

C/C++:

* [Google](https://google.github.io/styleguide/cppguide.html)

* [LLVM](http://llvm.org/docs/CodingStandards.html)

* [LLDB](http://lldb.llvm.org/lldb-coding-conventions.html)

* [Qt](https://wiki.qt.io/Qt_Coding_Style)

* [GNU](https://en.wikipedia.org/wiki/GNU_coding_standards)

* [Microsoft](https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference)

* [Stroustrup](https://www.stroustrup.com/bs_faq2.html#layout-style)

The following styles are applicable for braces placement only:

* [Allman braces](https://en.wikipedia.org/wiki/Indent_style#Allman_style)

* [Whitesmiths braces](https://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style)

* [K&amp;R braces](https://en.wikipedia.org/wiki/Indent_style#K.26R_style)

JavaScript:

* [JavaScript Standart Style](https://standardjs.com/)

* [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)

