IntelliJ always creates two blank lines after (and one space character) after "{" of functions

Answered

https://i.gyazo.com/ab7735325717a3a19decbdc4d92da136.mp4 

Hey,

since one of the two recent IntelliJ updates (I guess it was 2020.2.4), IntelliJ automatically creates two blank lines (for me) after functions like `forEach` and `map`.
How can I fix this?
(I did not change anything with Code Styles by myself)

Thanks in advance!

0
5 comments

Please share a sample project with the code style saved inside this project at https://uploads.jetbrains.com and provide the ID here.

0
Avatar
Permanently deleted user

Here is the content of the "codeStyles/codeStyleConfig.xml" file:

<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

And the following is the content of the "codeStyles/Project.xml" file:

<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
</component>
0

And the rest of the files to reproduce this behavior? Please just zip and upload the project dir.

0
Avatar
Permanently deleted user

In addition, this preview also does not look quite right to me: https://prnt.sc/vtxiu2

0

Please sign in to leave a comment.