Open
Description
Is there a way to add brackets to the if/else/while/do statement when we use format code?
Environment
- Operating System: Ubuntu 20.04
- JDK version: 1.8.0, 17.05
- Visual Studio Code version: 17.05
- Java extension version:v1.13.0
Steps To Reproduce
Right-click -> Choose Format Doccment
Current Result
public int test(int x) {
if (x == 1) return x + 1;
return x * 10;
}
Expected Result
public int test(int x) {
if (x == 1) {
return x + 1;
}
return x * 10;
}