IntelliJ comment shortcut (ctrl + /) not working with Jenkinsfile

Answered

Hello,

I am trying to comment out large amount of code in my JenkinsFile and when I try to use the IntelliJ Idea shortcut to comment it, nothing happens. I have tried to also go to code->Comment with Line Comment and again nothing happens. This feature works fine with my java files but not with JenkinsFile. I see IntelliJ recognizes that it is a JenkinsFile because it is highlighting the syntax and greys out the text when I manually add comments. I do not want to manually add comments to over 80 lines of code.

Thanks. 

0
2 comments

Could you please add more details to the linked ticket like a screenshot showing how this file looks like in the IDE? It may be mapped to the wrong file type. Double check it's mapped to Groovy and not to Text files. See https://stackoverflow.com/a/13374653/104891 for the similar issue.

0

Please sign in to leave a comment.