Order of #includes
File | Settings | Languages & Frameworks | C/C++ | Order of #includes for Windows and Linux
JetBrains Rider | Settings or Preferences | Languages & Frameworks | C/C++ | Order of #includes for macOS
CtrlAlt0S
note
Preferences configurable on this page are saved using the mechanism of layer-based settings.
On this page, you can configure the #include ordering settings.
Preserve existing #include groups during a sort | This option lets you configure whether the default sorting action should regroup all directives or sort each group separately. |
Case-sensitive sort | Select this option to sort all |
Group headers by directory | Select this option to create groups of headers based on their file path. |
Put files before folders | By default, all |
Sort order | Customize the sorting rules: order precompiled headers, the main header for the current file, add blank lines to separate your groups and find the place for all |