You can override IDE code style settings with settings from EditorConfig (https://editorconfig.org/).

To use EditorConfig settings, you must install and enable the EditorConfig plugin. To configure the style in EditorConfig, open settings (&shortcut:ShowSettings;) and navigate to Editor | Code Style.

To export the current IDE code style settings into the .editconfig file, click Export.

EditorConfig settings