Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i add Jenkinsfile support to visual studio 2017

I am using Visual Studio 2017 Pro, and i am being driven crazy by the lack of syntax highlighting for the Jenkinsfile in my project. I am using the Declarative Syntax, but i just cant seem to find anything on getting this to work. My research says that its based on groovy, but i dont see a way to map it to that language either. Any help is appreciated.

like image 684
Rick james Avatar asked Jan 04 '18 18:01

Rick james


1 Answers

This might not be a solution for everyone, but for me, it worked: Jenkinsfiles are the only files without extension I am working with, therefore I opened Tools -> Options -> Text Editor -> File Extensions and then, I checked "Map extensionless files to:" and selected "Javascript Editor"

This does not require to install any extension and the display is great

like image 198
Jose Camacho Avatar answered Sep 18 '22 15:09

Jose Camacho