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!
Visual Studio Code
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 🙂
Use Visual Studio Code instead of PowerShell ISE
I started writing PowerShell scripts using the built-in Windows PowerShell Integrated Scripting Environment (ISE) a long time ago. It's always there for you in Windows and was perfect for what I was doing then. But sometimes, you need more functionality, and that's where Visual Studio Code (VS Code) comes in. In this blog post, I would like to show you some features which make VS Code my editor of choice.