Add {…} to if-else and loops

Convert single statements into blocks.

Add {…} to if-else and loops

Configuration

  • Code Assist ID (for the configuration file): add-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