# Writing Scripts in VS Code

VS Code with Microsoft's free PowerShell extension colors a script, suggests commands as you type, underlines problems such as a missing quote or an alias before you run anything, and runs the whole script with F5 in a terminal inside the editor.

![Cheat sheet for the lesson Writing Scripts in VS Code: VS Code with Microsoft's free PowerShell extension colors a script, suggests commands as you type, underlines problems such as a missing quote or an alias before you run anything, and runs the whole script with F5 in a terminal inside the…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b31647f1758149358a5cc0f69e08d960.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: Code Editor, Linter, powershell, powershell-extension, psscriptanalyzer, VS Code
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-scripts-in-vs-code-cheat-sheet
