intellij-ideagroovyjenkins-pipelinesyntax-checkinggoland

Intellij IDEA. Check syntax for files without extension


I have Jenkinsfile it's written in Groovy, but file name doesn't have approprite extension: .groovy. How can I tell IDEA to check groovy syntax of this file?

Update: Also I interested in the same question about GoLand IDE


Solution

  • From the project sidebar, right-click the file and choose "Associate with File Type". Then just select Groovy from the menu, and you're all set.

    enter image description here

    GoLand does not support Groovy so this will not be possible there.