How to auto indent jsx in VSCode

Try changing the language mode to JavaScript React.

  1. Open the commands palette.
  2. Type change language mode
  3. Press Enter
  4. Type javascript react
  5. Press Enter

Once that’s done, you’ll see the JavaScript React mode in the bottom left corner.

Confirmation of JavaScript React Mode

Once you’re in that mode, try again to format the document.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)