Home > Blockchain >  Indentation not working properly for if-else statement in vscode for java
Indentation not working properly for if-else statement in vscode for java

Time:12-05

image showing the indentation problem

I am using vscode for programming in java and for auto-indentation, I am using "prettier". I have applied all the necessary settings in the preferences menu like "Format on Save" and "Default code formatter", but still vscode fails to indent properly the if-else statement as shown in the image. Any suggestion is appreciated. Thanks in advance.

CodePudding user response:

Try using java prettier formatter

  • Related