"Never join already wrapped lines" for Javascript source formatter
Eclpise (Helios) Java formatter has "Never join already wrapped lines" configuration option. Is there any similar 开发者_如何学运维option for Javascript files?
in eclipse go to help > install new software and add this repo:
http://download.aptana.com/studio3/plugin/install
after installing the aptana plugin you should have some new javascript formatting options available. including never join already warped lines.
you will have to change your .js file associations to use the aptana editor (and it may be a good idea to change .html files too)
you can find a rough guide on how to change file associations in eclipse here:
http://www.andyscott.id.au/blog/Setting-up-file-associations-in-Eclipse
I'm sure you've sorted this issue out by now but im leaving this answer here for the benefit of anyone else that finds this question.
精彩评论