We use prettier at work. You just need to configure it correctly. Answer from SanGoloteo on reddit.com
Discussions

Recommended VSCode plugins for React development?

Not specific to react, but a must have:

Prettier (highly recommended)

Bracket Pair Colorizer

Built-in support for HTML and JS are pretty good in vscode.

More on reddit.com
🌐 r/reactjs
30
25
December 20, 2017
Best formatter/beautify extension you know of that supports largest selection of languages?
I wouldn't rely on that - better just find the best for each you have to use (and I doubt that you have to deal with 100 different languages on a daily basis). I'm dealing mostly with frontend web and I have to say Prettier is, well, pretty good once you set it up to your liking. More on reddit.com
🌐 r/vscode
5
15
November 25, 2021
The Best VS Code React Extensions 2022
There are some really nice snippets in there. However be aware some of these extensions will have overlapping snippets. Soninstalls inly the one you need! For react/rn snippets, go for the ES7 extension. It has everything. More on reddit.com
🌐 r/react
1
5
January 8, 2021
VSCode formatter for React?
We use prettier at work. You just need to configure it correctly. More on reddit.com
🌐 r/reactjs
7
2
May 11, 2021
🌐
YouTube
youtube.com › watch
Autoformat your React Native code with Prettier in VSCode - YouTube
In this video I want to show how Prettier works and how to easily set it up in VSCode.React Native Taxi App course: https://reactnativetutorial.net/mapsappMy...
Published   October 10, 2017
🌐
YouTube
youtube.com › watch
How To Enable Prettier For React JSX In VS CODE - YouTube
Code to include in VS Code "settings.json" file: "[javascriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }Please subscribe to
Published   March 15, 2023
🌐
GitHub
gist.github.com › shukerullah › 34329bad2f01010a8107674c780c1024
Visual Studio Code settings for React Native · GitHub
These prepacked plugins will definitely help developers of React & ReactNative community ... Paste following code with your design settings. { // The number of spaces in a tab. "editor.tabSize": 2, // Specifies workbench icon theme. "workbench.iconTheme": "vscode-icons", // Format a file on save. "editor.formatOnSave": true, // Set Prettier default as formatter "editor.defaultFormatter": "esbenp.prettier-vscode", "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, // Controls how the editor should render whitespace characters.
🌐
GitHub
github.com › TimonVS › vscode-react-standard
GitHub - TimonVS/vscode-react-standard: React snippets for VS Code using JavaScript Standard Style
January 5, 2018 - Standard - The official StandardJS linter and code formatter. Use standard --fix to format your code. vscode-standardjs - VS Code plugin to format code using standard --fix. ... This is a fork of vscode-react following JavaScript Standard Style.
Starred by 15 users
Forked by 4 users
Find elsewhere
🌐
DEV Community
dev.to › rohidisdev › top-10-vscode-extensions-for-react-57g6
Top 10 VSCode Extensions for React - DEV Community
August 14, 2022 - We will be covering 10 essential ... for React developers. These extensions will help you code faster, cleaner and easier. ... Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. ... This extension highlights matching opening and/or closing tags. Optionally it also shows the path to tag in the status bar. Even though VSCode has some basic ...
🌐
freeCodeCamp
freecodecamp.org › news › vscode-react-setup
How to Set Up VSCode for Your React Projects
February 17, 2022 - You might have noticed in the example above that the code isn't very nicely formatted. Fortunately, you can automatically format every .js file you write using the Prettier extension for VSCode.
🌐
Medium
medium.com › react-native-training › prettier-for-react-native-776fe33b8d93
Prettier, for React Native. Let the code format itself | by Lorenzo 'kelset' Sciandra | React Native Training | Medium
May 21, 2017 - First thing first, you need to download the Prettier extension for VSCode; once that’s installed, to have it format your code whenever you save you need to modify your editor preferences.
🌐
DhiWise
dhiwise.com › post › best-vscode-extensions-for-reactjs
Top 10 Best VS Code Extensions for React App Development
September 28, 2024 - Here is the list of the top 10 VS Code extensions for React users ... Let’s look into each of them one by one. Prettier is an opinionated code formatter that comes in handy for automatically formatting code. It enforces consistent style by parsing your code and reprinting it with its rules that take the maximum line into account and wraps the code if necessary.
🌐
DEV Community
dev.to › wteja › how-to-configure-visual-studio-code-s-formatter-supports-jsx-206n
How to Configure Visual Studio Code’s Formatter Supports JSX? - DEV Community
May 25, 2021 - I have the habit to format the code after coding to make the code more readable and beautiful. The VSCode formatter works well on many language, until I worked with JSX in JavaScript file… ... Most simple solution is just click on Language Mode on the bottom right of Visual Studio Code and change from JavaScript to JavaScript React instead.
🌐
DevPress
devpress.csdn.net › react › 62ec4b8489d9027116a109c3.html
Automatically Format Code On File Save in Visual Studio Code Using Prettier_javascript_weixin_0010034-React
August 5, 2022 - So in this article, we will see how to set up Prettier formatter in Visual Studio Code(VS Code). So let's get started. Install the Prettier extension for VS Code which formats code written in Javascript, Angular, Vue, React, Typescript and many other languages.
🌐
YouTube
youtube.com › watch
ReactJS Tutorial 6 : Auto Format React Code With Prettier - YouTube
How to auto format react code using prettier.How to format code on save.Entire React Playlist: https://www.youtube.com/watch?v=MHn66JJH5zs&list=PLSsAz5wf2lkK...
Published   August 22, 2023
🌐
SitePoint
sitepoint.com › blog › javascript › how to set up vs code for react development
How to Set Up VS Code for React Development — SitePoint
November 15, 2024 - The ESLint extension for VS Code integrates ESLint into your development environment, helping you catch and fix code issues, ensuring your React code follows best practices and standards.
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
prettier-vscode · Built-in support · Got more?Send a PR · See others · Regularly used by: More than 83% of respondents to State of JS 2021. More than 70% of respondents to State of JS 2020. More than 9.9 million dependent repositories on GitHubCheck Them Out ·
🌐
Syncfusion
syncfusion.com › blogs › react › 7 best vs code extensions for react development to boost productivity
7 Best VS Code Extensions for React Development to Boost Productivity | Syncfusion Blogs
February 11, 2026 - Or visit VS Code Marketplace, search for the VSCode React Refactor extension, and directly install it in your local VS Code application. Compatible with React Hooks API. Handles bindings for key attributes and functions.
🌐
GitConnected
levelup.gitconnected.com › automatically-format-code-in-visual-studio-code-when-working-with-react-c48674a12dc5
Automatically format code in Visual Studio Code when working with JavaScript and React with Prettier | by Yogesh Chavan | Level Up Coding
November 12, 2024 - To automatically format the file on saving, 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 ...
🌐
Sebastian Weber
doppelmutzi.github.io › react-eslint-prettier-vscode-2020
Efficient Code Analyzing and Formatting (for React) with ESLint, Prettier and VSCode – 2020 Edition
February 24, 2020 - At the latest after a restart of VSCode format on save should work as expected for JSX and javascript code as well as json and css files. You can check out my demo project to see all this in action. Just perform the following steps: ... Optional: Install the VSCode extensions for ESLint and Prettier.