Intellij adds an extra line to new blocks

When I write code in Intellij, I often create new blocks by typing these types of sequences:

if (test) { 

Input that opens curly braces causes Intellij to automatically insert a closing shape and move the cursor between two curly braces:

 if (test) {|} 

At this point, I just press Enter and get a nicely formatted block with a cursor where it should be:

 if (test) { | } 

However, today Intellij adds an extra line to the block, for example:

 if (test) { | } 

I looked through all the project settings and the IDE, but I'm not sure what to change. FYI, this happens in different types of files (.java, .js, .css) for different types of projects (Spring / Java, Node / Express). Does anyone know how to fix this slight irritation?

+6
source share
1 answer

As of 5MAR2015, the solution is to disable the Gauge plugin. The loan for this goes to @KaPaHgaIII

+4
source

Source: https://habr.com/ru/post/980405/


All Articles