Hey there,
since I am going to work alot with Java Script now I wanted a plugin for Java Script text auto formatting, similar to auto pep8. The plugins I found were a old and not configurable so I used what was there and improved it.
Here is the result: github.com/select/sublime-text-jsbeautifier
But wait I still have some issues to solve before I can submit it to the plugin manager
-
When I re-format just one line jsbeautifier takes away the original indentation. I guess this is because it was meant for formating whole files. Any hints on how to get back the leading tabs/spaces?
-
I am not sure how to parse user preferences or if I even have to. Any hints?