Announcing: Chef Extensions for Visual Studio Code

Ohai Chefs!

It was great to catch up with so many of you at both the Seattle and London Community Summits that I went to!

Today, Microsoft have open sourced their popular code editor, Visual Studio Code (see https://code.visualstudio.com/) and provided it with a new extensibility framework, and over the past few weeks I’ve been working on a Chef extension to make the cookbook authoring experience more delightful, including:

  • Syntax/keyword colorization support for Chef/Chef Provisioning DSL
  • Snippets - autocompleting code snippets for every resource built into Chef Client 12.5
  • Rubocop static code analysis/style highlighting

The extension can be downloaded from within Visual Studio Code BETA (which you’ll need to update to if you had a previous version). More details and screenshots can be found on my blog: http://stuartpreston.net/2015/11/announcing-chef-extension-for-visual-studio-code

Of course we open-sourced the extension too at http://github.com/pendrica/vscode-chef so if you want to, give it a go and let us know what you think. Feedback, contributions and grumbles are all welcome!

thanks,
Stuart

Stuart Preston
Technical Director, Pendrica
@stuartpreston

1 Like

Thanks Stuart!

I loved that I could install this just by hitting ctrl+p then typing “ext install chef” in Code.

1 Like