r5n-dev / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.71k stars 440 forks source link

Snippet return has no braces #234

Closed levinaHR closed 2 years ago

levinaHR commented 2 years ago

Snippets like rfc, rcc, rafc and such returns <_div_> in a single line without braces like this: export default function Content() { return <_div_> }

Is there any way to change it to this format? export default function Content() { return (

<_div_>

) }

Also for some reason even if I enable prettier integration it won't work. For example if i disable semicolon in Prettier and keep the ES7 React semicolon enabled, the snippet will still have semicolon.

chillios-dev commented 2 years ago

@levinaHR I made change to this, let me know if this is fixed by v4.3.1

levinaHR commented 2 years ago

It's fixed now, thank you!