Autoformat Javascript in Netbeans IDE

后端 未结 1 1717
我在风中等你
我在风中等你 2021-01-13 10:02

Are there any known Plugins or ways to properly autoformat Javascript in Netbeans IDE?

相关标签:
1条回答
  • 2021-01-13 10:51

    EDIT 9/15/2012

    After looking into this further, I have found that the javascript module is being rewritten already(much needed). You can finally find formatting options for javascript. It's available in the netbeans nightly builds. Good luck all.

    http://bits.netbeans.org/download/trunk/nightly/

    I have released a pretty simple JS formatter that uses JSBeautify and runs in Rhino.

    http://plugins.netbeans.org/plugin/43263/jsbeautify

    You have to use an alternate key for now. I'm working on modifying the Javascript language in Netbeans to possibly release something better, later on(either as a plugin or patch). I'm still familiarizing myself with the way things are happening in Netbeans.

    There have been talks for years to add more formatting options for Javascript in Netbeans. Nothing has surfaced. I'm going to propose that the Javascript language leverage JSBeautify(running in Rhino) to provide formatting, rather then implementing new features in Java. This simplifies the formatting process, plus the JSBeautify community is very large and it's actively developed.

    0 讨论(0)
提交回复
热议问题