The nice part of the palette is it will provide help along the way as you type. I want to bring special attention to this because almost everything you can do via a menu or button in VSCode, can also be done via the command palette. One additional resource that I think should be required reading, is the Tips and Tricks content that Microsoft published on GitHub. Code Extension Marketplace (how to expand what VSCode can do, will go over these in a bit).
#Visual studio code powershell how to#
#Visual studio code powershell install#
If you already have GitHub Desktop installed, you will still need to install Git. You will also need to download and install Git. The VSCode team made some visual cues to easily indicate what edition you are using, as they can be used side-by-side: If you favor being a beta tester you can download the Insiders Edition from the same page. Just note that I only use Windows, so if you are on another OS your mileage may vary. You can download your specific OS flavor here. VSCode is a cross-platform tool that works on Windows, Linux and Mac. Since VSCode is the primary editor I use I will go over how to use it to interact with the dbatools repository. It is a SQL Server community-driven and supported module that is hosted on GitHub. It has a wealth of commands to make any DBA’s life easier. The PowerShell module, dbatools, is one that if you have to support one or more SQL Servers, you need to look into what this module offers. One repository I am a major contributor for is dbatools, and I use VSCode and the Git integration exclusively for this work. In the content below I give you a walk-through of how to get VSCode setup. I use VSCode now for building out PowerShell automation scripts or contributing to GitHub repositories that utilize the PowerShell language.
![visual studio code powershell visual studio code powershell](https://www.cloudnotes.io/wp-content/uploads/2019/08/image-4.png)
It is has become more and more popular with each release and is picking up use in PowerShell development. VSCode is a free, cross-platform source code editor that offers you the ability to perform development operations like debugging or running task. The 1.0 release came out in April of 2016 and from there we have seen feature after feature added with every release. Visual Studio Code (aka VSCode or just Code) has been around for a few years now.