How can i add Jenkinsfile support to visual studio 2017

后端 未结 2 676
礼貌的吻别
礼貌的吻别 2021-02-14 04:16

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 jus

相关标签:
2条回答
  • 2021-02-14 04:50

    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

    0 讨论(0)
  • 2021-02-14 04:52

    I am in the same boat. Using Visual Studio 2017 Enterprise.

    I found this extension recently for Visual Studio Code and this extension for Visual Studio.

    0 讨论(0)
提交回复
热议问题