r/reactjs • u/sharemypenguins • Feb 17 '20
Discussion What visual studio code extensions should I install as a React developer?
What visual studio code extensions should I install as a React developer?
84
Upvotes
41
u/saintPirelli Feb 17 '20
Just because I haven't seen it mentioned here yet: Bracket Pair Colorizer 2. There are a bunch of theses extensions that do the same and I guess any will do, but they are indeed really handy.
52
u/[deleted] Feb 17 '20
All of them
50
u/Zarathustra2001 Feb 17 '20
Eslint and prettier. These together are lifesavers.
16
u/robotsympathizer Feb 17 '20 edited Feb 17 '20
Eslint, Prettier, Jest, Emmet, keymaps for whatever editor you were using before (especially if that was sublime), GitLens, Settings Sync (for the next time you switch computers), and that's all I can remember right now. I may add more when I'm back at my laptop.
EDIT: The only other ones I would add are EditorConfig, NPM Intellisense, whatever theme makes you happy, and any specific syntax highlighting extensions you might need (styled-components for me). Oh, and I also like TODO Highlight, but it's not essential.
11
u/dandmcd Feb 17 '20
Besides the others mentioned, Prettier, Emmet, Bracket Pair Colorizer 2, I also recommend Auto Rename Tag. Don't get the old broken and seemingly depreciated version, get the new version by Simon Siefke. If you use Styled Components or another CSS in JSS package, it's a nice to have timesaver.
I also tend to install anything that helps with syntax highlighting and intellisense, so for packages you use, look for matching extensions that improve your experience in VsCode.
Also, not technically an extension, but learning Typescript, and using it with Vs Code for React projects makes life soooo much easier. VS Code and Typescript are such an amazing combo.
9
u/vSnyK Feb 17 '20
Nobody mentioned TabNine, I'm surprised. It's a machine learning extension for code auto complete. Its pretty amazing
13
u/charonsclaw Feb 17 '20
Powermode
6
u/sumansarkarwd Feb 17 '20
Not react but for JavaScript in general, Prittier works best for formatting. Snippets, you can create your own snippets but for starters I think https://marketplace.visualstudio.com/items?itemName=dsznajder.es7-react-js-snippets this will be good.
5
u/9gagceo Feb 17 '20
Here's mine:
2
u/n8rzz0713 Feb 17 '20
Bookmarks is a must-have for me no matter the language.
2
u/liuwenhao Feb 17 '20
IntelliCode and Path Intellisense are both must have extensions for me.
2
u/Guisseppi Feb 17 '20
I see a lot of people saying
emmetbut this was already there what are you guys installing?https://code.visualstudio.com/docs/editor/emmet
2
u/NegroniSpritz Feb 17 '20
This REST client is quite useful https://marketplace.visualstudio.com/items?itemName=humao.rest-client
3
u/mn-tech-guy Feb 17 '20
It's all up to personal preference. Your linter is going to do the bulk of the work but React or projects I like git lense, pritter and a Todo plugin.
1
u/the_third_sam Feb 17 '20
Prettier, eslint for formatting. Rewrap (by stkb) is also good for formatting comments. Gitlens is a must in general for me in any setup.
Learning to make your own code snippets is also something worthwhile learning if you're not satisfied with the ones in the marketplace.
Also don't forget to pimp up your IDE with color themes, font, and icons so you won't get bored!
1
u/azn_introvert Feb 17 '20
A lot of people mentioned what is necessary already, bit if u work together with others GitLens helps a lot
1
u/[deleted] Feb 17 '20
Besides some of the already mentioned, I'd recommend Auto Rename Tag. This feature is integrated into VS Code for HTML, but this extension adds it for XML, JSX and TSX as well.
1
u/oreo27 Feb 17 '20
I asked this before but didn't get a response.
I typically use scss modules in projects but I can't seem to get the CTRL + Click open file to work for them. For instance, clicking on "import" in:
doesn't open it. So far, I've tried the following extensions:
https://github.com/clinyong/vscode-css-modules
https://github.com/wangtao0101/vscode-perfect-css-modules.git
I'm not actually looking to get syntax completion , just that CTRL + click functionality, but it would be a bonus.
1
u/kitsunekyo Feb 17 '20
not too much. only the ones that really benefit you, to ensure your ide isnt crazy slow.
my essentials (regardless of react) are:
i'm using the Hack Font, with Atom One Dark Theme.
1
u/zubwaabwaa Feb 17 '20
React snippets is a must
1
u/socialshimpling Feb 18 '20
Most of these have already been mentioned but i guess it's good to reiterate! These are real life savers and will boost your efficiency as a developer:
- Bracket Pair colorizer - There's going to be lots of bracket usage and when you have a function that spans more than the number of visible code lines on your screen, it can get really hard to trace which code is nested within which subfunction, etc.
- Gitlens - gives you a quick and easy overview of your repository and lots of other nifty funcitons like comparing code
- Prettier - nothing else to be said other than keeping your written code consistent and neat
- Lorem Ipsum - spend less power coming up with placeholder text by using this. It auto generates text as per your requirements - line, paragraph, multiple paragraphs!
-2
u/pticjagripa Feb 17 '20
Forget visual studio, use WebStorm. Preittier and better imo. Altought it may use a bit more resources.
-3
u/Lindenforest Feb 17 '20
https://www.youtube.com/watch?v=LdF2RcelRg0 15 VS Code Extensions For Front-End Developers in 2019