How can I install Groovy plugin in WebStorm?

2020-06-01 03:26发布

问题:

I'm developing with WebStorm. I want to have syntax highlighting for Jenkins Groovy pipelines.

It's possible to use InteliJ IDEA for editing Jenkinsfiles, but it's obviously inconvenient to switch back and forth between IDEs.

Can I install Groovy plugin from IntelliJ IDEA Community Edition in WebStorm? If yes - how?

回答1:

I didn't get that plugin to work either, but as a partial alternative, you can use this TextMate bundle: https://github.com/textmate/groovy.tmbundle

  1. Download the repository (https://github.com/textmate/groovy.tmbundle/archive/master.zip)
  2. Extract the zip file to some directory on your system
  3. In WebStorm / IntelliJ / etc., go to File > Settings > Editor > TextMate bundles, click on the + sign and point it to the directory you just extracted to