Code format, force braces for if conditions does not work
已回答
I have set the force braces always for `if()` statements for JAVA but it does not force for single line if statements.
请先登录再写评论。
@Yashdesai7 Sorry for the late reply. But I can't reproduce it. Can you share the sample code (only one file is OK i think) with us? If it's private, you can upload it to https://uploads.jetbrains.com/ and paste the upload id here.
Force braces “Always” is broken not only for if-statements, but also for for-loops.
IntelliJ IDEA 2024.1.4 (Ultimate Edition)
Build #IU-241.18034.62, built on June 20, 2024
Frank Neblung
I tried to reproduce the issue on a sample file, but couldn't: https://drive.google.com/file/d/1fvzlBYC1AkyI3Jws5iyxDjkiG2CeyAUU/view?usp=sharing. Could you please share a sample file and possibly your IDE settings (File > Manage IDE Settings > Restore Default Settings..) to: https://uploads.jetbrains.com, just provide the uploaded file ID.
Wanted to record the defect. Now it works. The feature seems to be flaky…
Thank you for the update. If you happen to reproduce it again, please share additional information mentioned in the previous note.