What is the vscode folder for?

What is the vscode folder used for? Does this give us the ability to integrate with VSCode? If so, is there documentation on how to do that? Our team primarily uses PowerShell Studio where we can build modules from the functions in the ToolKitMain script. This allows us to start to type the function, the tab to fill out the rest and show us the parameters. If VSCode is able to do this we could save money from buying the PowerShell Studio licenses.

The .vscode folder contains formatting rules and script analyzer rules for VSCode. You don’t need to ship it with your package, but one thing it will do for you for example if warn you if you use any syntax that isn’t backwards compatible with older PowerShell versions.

To get intellisense / autocomplete, just run AppDeployToolkitMain.ps1 in either PowerShell ISE or VSCode. You don’t need to use other tools to make it a module.

There is an unofficial module in the PSGallery, but it has been known to cause conflicts with PSADT. The new v4.0 release out later this year will be a module however!

1 Like