You can install Visual Studio code on your device (Windows/Mac/Linux), but you can also use it from within your browser. In this blog post, I will show three ways to start your Visual Studio Code session.
Visual Studio Code
How to create and use your own PowerShell GitHub Repository
I use GitHub to store all my scripts and projects. In this blog post, I will show you how to create and use your GitHub repository.
Remote Visual Studio Code PowerShell development on a Windows Sandbox instance
You can develop PowerShell scripts on your workstation and run and test them there too... But sometimes... That's not what you want. You could break your workstation with PowerShell code, and your workstation is not clean with all features installed, or settings enabled that your target systems don't. And that's where Visual Studio Code and its Remote SSH extension come into play. This blog post will show you how to combine that with a Windows Sandbox instance.
Editing PowerShell scripts in Azure Cloud Shell
Executing PowerShell scripts in Azure Cloud Shell is easy and fast, but how do you edit them before running? I will show you three ways to do that in this blog post.
Visual Studio Code Snippets and PowerShell
You often repeat certain standard things when writing scripts in Visual Studio Code. Wouldn't it be nice if we could simplify that? This blog post will show you how to use VSCode Snippets to your advantage!
Debugging PowerShell scripts in Visual Studio Code
When testing your new PowerShell script, it throws an expected error or isn't that reliable, and you're not sure why 🙁 The Visual Studio code debugging options could help you pinpoint the issue. In this blog post, I will show you how to do that.
Jupyter notebooks in VSCode with PowerShell support
Saw a video about Jupyter in Visual Studio Code a while back, tried to get it up and running, and... It seems that things are changed now. It was there in VSCode preview versions and the PowerShell preview extension. All the How-To's I found showed me that way of getting it installed/configured. So I played around with Jupyter and the PowerShell kernel installation and got it working in VSCode. In this blog post, I will show you how to install and configure everything 🙂
How to make your PowerShell scripts look better
When I started writing my first PowerShell scripts... They didn't look that good, it was PowerShell 2.0, of course, and I was just a beginner 🙂 I'm getting better at it, and the newer versions of PowerShell (And Visual Studio Code) have a few nice formatting tricks. This blog post will show you a few ways to make your scripts look better and, more importantly... A lot more readable!
Scripts from my blogs are available on GitHub now
All the scripts that I used in my blog posts are available on GitHub now 🙂 All new items will appear there too. You can download them individually or clone my repository to your hard drive. (How to Clone) The GitHub URL is https://github.com/HarmVeenstra/Powershellisfun. I also added the URL on each blog post page in the readme.md so that you can jump straight to the correct folder.
Visual Studio Code Extensions
Since I started using Visual Studio Code for creating PowerShell scripts, I added more extensions to it, which make the look and feel better and make scripting easier. This blog post will show you which ones I use and why. If you use specific extensions that you want to share, please leave a comment 🙂