问题
I'm using IntelliJ IDEA Ultimate 18.1 and Jenkinsfile support is awful. Thankfully, treating the file as Groovy is a workaround I can live with.
This involves
- Removing the Jenkinsfile association
- Adding Jenkinsfile under the Groovy group
The problem is every time IDEA starts up fresh, it will remove Jenkinsfile association and, since (1) the original association has been removed, treat these files as plain text.
File type recognized: File extension Jenkinsfile was reassigned to Jenkins file Revert
How can I prevent this?
回答1:
It's a known bug fixed in IntelliJ IDEA 2018.2. 2018.2 will be released this week.
来源:https://stackoverflow.com/questions/51499457/how-can-i-prevent-intellij-idea-from-reassigning-file-type-associations-at-start