Remove {…} from if-else and loops

Replace single statement blocks with their inner statement.

Remove {…} from if-else and loops

Configuration

  • Code Assist ID (for the configuration file): remove-braces
  • You can configure custom keyboard shortcuts with these code action kinds:
    • refactor.rewrite.toggle.braces.if-then.p42
    • refactor.rewrite.toggle.braces.if-else.p42
    • refactor.rewrite.toggle.braces.while.p42
    • refactor.rewrite.toggle.braces.for.p42
    • refactor.rewrite.toggle.braces.do.p42

Related Code Assists

Learn More

Available In