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?
source share