1

With Sublime Text, what is the best plugin for JSX code formatting ? Also, specifically, if the JSX code is written inside .js file (instead of .jsx file), what do we need to do to handle the formatting inside JS file ?

copenndthagen
  • 49,230
  • 102
  • 290
  • 442
  • I think [babel-sublime](https://github.com/babel/babel-sublime) should do the job. But I haven't yet tried it. – Ajeet Shah Mar 25 '21 at 19:07
  • Actually, writing it inside .js is a semantic mistake because JSX isn't valid JS in any specification but an extension over it. – Estus Flask Mar 25 '21 at 21:04

1 Answers1

0

Sublime Text is a great editor. It took me a while to work out the correct configuration but now it's up and running I really appreciate its light feel (few distractions from the actual code), its flexibility and speed.

I use the JSCustom package for code highlighting.

There's nothing extra that you need for the JSX highlighting, it's included in JSCustom.

jaesle
  • 548
  • 4
  • 14