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.
Please sign in to leave a comment.
I've reported https://youtrack.jetbrains.com/issue/IDEA-237662, please follow for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.
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.