r5n-dev / vscode-react-javascript-snippets

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

rafce snippet " return<div></div> " in a single line. Can the div be in a braces by default? #213

Closed anilbdev closed 2 years ago

anilbdev commented 2 years ago

rafce snippet gives below code import React from 'react';

function FirstPage() { return

; }

export default FirstPage;

Previously return statement was like

return(

)

How can i change to old return format?

ice-chillios commented 2 years ago

@anilbdev right now, a snippet is integrated with a prettier config. Take a look at settings to disable semiColons option and restart vscode. I feel like semis should be disabled as default because of a lot of issues around that can arise.