VS Code tips — The add or remove braces from arrow function refactoring

preview_player
Показать описание
Today's VS Code tip: add or remove braces from arrow function

Use this refactoring in JavaScript and TypeScript to quickly add braces to an arrow function or remove them from an arrow function that consists of a single return statement.
Рекомендации по теме
Комментарии
Автор

Thanks!
on macOS the hotkeys are Ctrl+Shift+R.

You can put a cursor in any place and press the hot keys.

mikewazowski
join shbcf.ru