jenkinsvisual-studio-codecodehighlighter

.jenkins code highlighting Visual Studio Code


In our project we use *.jenkins files. How can I set syntax highlighting for Jenkinsfile?

I installed different Plugins, but per default they only support Jenkinsfile.


Solution

  • I answered a similar question in How can i add Jenkinsfile support to visual studio 2017

    Basically, I got it by setting the highlight of the *.jenkins files to be Javascript