Write PowerShell in VS Code with GitHub Copilot #shorts

preview_player
Показать описание
If you are writing PowerShell scripts or code, you need to check out GitHub Copilot in Visual Studio Code!

⭐ About
Thomas works as a Senior Cloud Advocate at Microsoft. He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure cloud platform. Prior to joining the Azure engineering team (Cloud + AI), Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.
If you want to know more about Thomas, check out:

#PowerShell #GitHub #VSCode
Рекомендации по теме
Комментарии
Автор

Cool demo for copilot, but it also demonstrates a problem I have with IDEs: that code is about as over-commented as it gets.

"$counter++" #increments the counter? No way! "while" introduces a #while loop? You don't say! /s

At this point, you should just replace co-pilot's comments with a single comment: "# Read the manual"

Really the only comment that's needed is the only one written by the programmer: "counter to 5" tells me what that entire block of code does without getting into the nitty-gritty of each individual line's contribution. Comments should give an overview of the code or explain unintuitive/confusing blocks, not explain every last detail in depth. We already have something that describes what the code is doing in this much detail... it's called code.

laurenlewis