Is it possible to format/beautify Javascript in pycharm?
pycharm
Solution
Yes it is (possible to format/beautify Javascript)! The trick lies in TextMate Bundles. Below instructions are for Pycharm Community 2018.1.4
1) Go to the TextMate repo and look for the javascript tmbundle 2) Download the zip and unzip 3) In Pycharm, go to `Settings -> Editor -> TextMate Bundles` 4) Add new Bundle via the green `+` top right and select the `javascript.tmbundle-master` folder 5) If you get the same yellow box that says `Some extensions declared in attached bundles are already used by native file types.`, then `Show details` -> `Unregister native file type` 6) Pycharm will then re-index, which may take a long time. After indexing is complete you should have javascript text highlighting.
Here is an arbitrary code sample
Problem
Pycharm's option + command + L to format HTML, or python files is very convenient, but doesn't seem to work for JS, is this an option?