
Toggle Braces keyboard shortcuts
Type | Mac Shortcut | Windows/Linux Shortcut |
---|---|---|
direct | CTRL + CMD + B | CTRL + ALT + B |
8 Code Assists
- Add {…} to if-else and loops
Convert single statements into blocks.
- Add {…} to arrow function
Convert arrow function expression body into a block body.
- Add {…} to case
Surround case statements in a block.
- Add {…} to JSX attribute
Add
{…}
to JSX attribute string literal value. - Remove {…} from if-else and loops
Replace single statement blocks with their inner statement.
- Remove {…} from arrow function
Convert an arrow function block body into an expression body.
- Remove {…} from case
Replace blocks with their content
- Remove {…} from JSX attribute
Remove
{…}
from a JSX attribute expression value that contains a string literal.