• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Hopetree
V2EX  ›  程序员

请教一下 vscode 中支持 jenkinsfile 代码格式化的插件

  •  
  •   Hopetree ·
    Hopetree · Aug 5, 2019 · 4359 views
    This topic created in 2498 days ago, the information mentioned may be changed or developed.

    其实有两个问题:

    1. 一般来说代码仓库中保存 jenkinsfile 是直接命名为 jenkinsfile 还是 xxxx.proovy ???
    2. jenkinsfile 的本质是 proovy 类型的代码,所以,vscode 上面有什么插件可以支持这种代码的格式化?
    2 replies    2019-08-05 15:26:05 +08:00
    arrow8899
        2
    arrow8899  
       Aug 5, 2019
    命名一般都是 Jenkinsfile, vscode 会自动识别为 groovy,如果你用其他名字,可以通过设置 AutoDetect Language 规则来识别 https://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   950 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 18:31 · PVG 02:31 · LAX 11:31 · JFK 14:31
    ♥ Do have faith in what you're doing.