官术网_书友最值得收藏!

The Groovy IDE and editor integration

If you are going to do any amount of serious Groovy coding, you will want to work with Groovy in your favorite IDE.

NetBeans

Of the popular IDE environments, NetBeans was the first to provide built-in Groovy support. From NetBeans 6.5 onwards, Groovy support is available from within any of the Java bundles without any additional plugins being required. By default, you have excellent Groovy source editing with syntax highlighting, source folding, and code completion. You can mix and match Groovy with Java in your projects, or build a full Groovy on Grails-based project from scratch. You can download the latest NetBeans installation from https://netbeans.org/downloads/.

Eclipse

Eclipse was the first Java IDE to have Groovy support integrated through the Groovy-Eclipse plugin. You can install the Groovy-Eclipse plugin from the update site at http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/.

The Groovy-Eclipse plugin has full support for source-level Groovy editing with syntax highlighting, auto completion, and refactoring.

Spring STS

If you don't want the hassle of managing individual plugins in your Eclipse installation, then it's worth downloading and installing the Groovy/Grails Tool Suite from http://spring.io/tools.

IntelliJ IDEA

All the latest versions of IntelliJ IDEA have excellent built-in support for Groovy, including excellent support for Grails, Gradle, and Spock. For the purpose of most of the examples in this book, the free Community Edition of IntelliJ IDEA is sufficient for your needs.

Other IDEs and editors

Other IDEs with Groovy support are JDeveloper and JEdit. In addition, many of the popular program editors, such as TextMate and UltraEdit, also now have Groovy support. There is even a plugin available to download for Emacs. Check out http://www.groovy-lang.org/ides.html for a full list of available plugins, and extensive instructions on setting up and running Groovy in your preferred environment.

主站蜘蛛池模板: 保德县| 墨竹工卡县| 麻城市| 温州市| 邮箱| 陵川县| 连江县| 平邑县| 西林县| 蒙阴县| 平泉县| 光泽县| 太康县| 双城市| 桐乡市| 神木县| 宝坻区| 龙胜| 万年县| 延津县| 吴旗县| 五家渠市| 洪雅县| 呼和浩特市| 南皮县| 固始县| 广汉市| 兴业县| 深水埗区| 邵东县| 竹山县| 宁南县| 隆尧县| 江口县| 铜山县| 招远市| 津市市| 东港市| 舞阳县| 浮梁县| 治县。|