Recall & Review
beginner
What is the purpose of the PowerShell extension in VS Code?
The PowerShell extension in VS Code helps you write, run, and debug PowerShell scripts easily inside the editor. It adds features like syntax highlighting, IntelliSense (auto-completion), and integrated debugging.
Click to reveal answer
beginner
How do you install the PowerShell extension in VS Code?
Open VS Code, go to the Extensions view by clicking the square icon on the left or pressing Ctrl+Shift+X, then search for 'PowerShell' and click 'Install' on the official Microsoft PowerShell extension.
Click to reveal answer
intermediate
What feature in the PowerShell extension helps you find errors in your script before running it?
The PowerShell extension uses a built-in script analyzer that checks your code for errors and style issues as you type, showing warnings and errors in the Problems panel.
Click to reveal answer
beginner
How can you run a PowerShell script inside VS Code using the PowerShell extension?
You can run a script by pressing F5 to start debugging or by right-clicking inside the script editor and selecting 'Run PowerShell Script'. The output appears in the integrated terminal.
Click to reveal answer
beginner
What is IntelliSense in the context of the PowerShell extension in VS Code?
IntelliSense is a feature that provides smart code completions, suggestions, and parameter info as you type, helping you write scripts faster and with fewer mistakes.
Click to reveal answer
Where do you find the PowerShell extension in VS Code to install it?
✗ Incorrect
The Extensions view is where you search and install extensions like PowerShell.
What key do you press to run a PowerShell script with debugging in VS Code?
✗ Incorrect
F5 starts the debugger and runs the script.
Which feature helps you see errors and warnings in your PowerShell script as you type?
✗ Incorrect
Script Analyzer checks your code for issues and shows them in the Problems panel.
What does IntelliSense provide in the PowerShell extension?
✗ Incorrect
IntelliSense helps by suggesting code completions and showing parameter info.
Where does the output of a PowerShell script appear when run inside VS Code?
✗ Incorrect
The integrated terminal shows script output when you run scripts.
Explain how to install and use the PowerShell extension in VS Code to write and run scripts.
Think about the steps from installation to running a script.
You got /5 concepts.
Describe the benefits of using the PowerShell extension in VS Code for beginners.
Focus on features that help write and debug scripts easily.
You got /5 concepts.