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