To specify your own code style settings that override the IDE settings, enable the EditorConfig plugin support in Settings/Preferences under Editor | Code Style.
To export the current IDE code style settings into the .editconfig file, click Export