diff --git a/Documentation/CLionCodeStyleSettings.xml b/Documentation/CLionCodeStyleSettings.xml new file mode 100644 index 00000000000..1f22e7173d8 --- /dev/null +++ b/Documentation/CLionCodeStyleSettings.xml @@ -0,0 +1,29 @@ + + + + + + + + diff --git a/Documentation/CLionConfiguration.md b/Documentation/CLionConfiguration.md index 796dbdfd20b..dd9563e948b 100644 --- a/Documentation/CLionConfiguration.md +++ b/Documentation/CLionConfiguration.md @@ -48,13 +48,8 @@ A symptom of this not being configured correctly is CLion giving a warning for e ## Code Generation Settings -To make code generated by CLion (e.g. identifier names, const placement) match the SerenityOS coding style, change the -following options under `Settings -> Editor -> Code Style -> C/C++`: - -- On the `Code Generation` tab set `const/volatile qualifier placement` to `int const x = 0` -- On the `Naming Convention` tab, select the following: - - ![Screenshot of Naming Convention settings](./CLion_Naming_Convention.png) +To make code generated by CLion match the SerenityOS coding style, import the `CLionCodeSyleSettings.xml` from this directory as code style scheme via +`Settings -> Editor -> Code Style -> C/C++ -> Scheme -> Cog icon -> Import Scheme...` ## Quick switching between Kernel and Userland targets diff --git a/Documentation/CLion_Naming_Convention.png b/Documentation/CLion_Naming_Convention.png deleted file mode 100644 index c7e437ed0e5..00000000000 Binary files a/Documentation/CLion_Naming_Convention.png and /dev/null differ