In this article, we will see some of the settings you can do in Visual studio code to improve your productivity when working with React
So Let's g...
For further actions, you may consider blocking this person and/or reporting abuse
Thanks for awesome guide!
I have a question about ES7 React snippets extension.
For example, if we use imr, there will be import statement but there is no semicolon at the end. Do you have any idea about how to include it?
Thank you. For adding semicolon, you need to add semi: true property to .prettierrc file. Alternatively you can search for prettier semicolon in visual studio code user setting through command palette and enable semicolon
So does it mean that, I can't add semicolon without using prettierrc; no setting in snippets extension.
I mean In Visual Studio Code, press Control + Shift + P or Command + Shift + P (Mac) to open command palette and type setting and then select "Preferences: Open User Settings" option and then search for prettier semicolon
If you enable there, then there is no need of .prettierrc for adding semicolon
Thanks, it is working now.
So it means I need to use in combination of prettier(prettier semicolon setting true) + user setting ("editor.formatOnSave": true) to add semicolon.
Hi James, Can you please make sure you've installed the correct extension?
You can also try restarting the Visual Studio Code IDE.
Try rafce instead of rce to check If that works and wait till it shows the autocomplete snippet before hitting the enter key after typing rafce
I had forgotten Lorem short cut in Emmet, good tips !
just enabled emmet with my react project
Awesome 👍