2019.3.1 fails to back-indent braces

已回答

Annoyingly, 2019.3.1 made the Java editor refuse to back-indent braces for me in the way that IDEA has always worked (for me, at least). For example, I start with:

if( VERBOSE )
{
System.out.println( "Finished product:\n" + conceptProduct );
System.out.println( "POJOs found in parsing:" );
for( Pojo pojo : pojoList )
System.out.println( PojoFactory.toString( pojo ) );
}

If I bracket the last three lines to control them with another variable in my unit test case, nothing happens when I type the closing brace:

if( VERBOSE )
{
System.out.println( "Finished product:\n" + conceptProduct );
if( DEEP_VERBOSE ) // add this line
{ // then this line
System.out.println( "POJOs found in parsing:" );
for( Pojo pojo : pojoList )
System.out.println( PojoFactory.toString( pojo ) );
} // then this closing brace
}

Historically, back to IDEA 12 or so when I began using IntelliJ, Adding the brace should have resulted in transforming the part of the paragraph I'm changing to

if( VERBOSE )
{
System.out.println( "Finished product:\n" + conceptProduct );
if( DEEP_VERBOSE )
{
System.out.println( "POJOs found in parsing:" );
for( Pojo pojo : pojoList )
System.out.println( PojoFactory.toString( pojo ) );
}
}

I have changed no settings for Java indentation, etc. (for years) since I created my own (Allman) indentation for IDEA to follow. This is the first update to ignore me.

Yes, I have highlighted (selected) the subblock of code above and asked IDEA to reformat it, but it does nothing.

Linux Mint with Cinnamon desktop

Linux [...] 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

 

Thanks

1

Please share a small sample project with your code style saved inside the project so that we can reproduce the issue: https://uploads.services.jetbrains.com/ . Also add the logs to the same archive: Help | Compress Logs and Show in ...

0

请先登录再写评论。