Skip to content

02 Intro

Gilles Querret edited this page Sep 11, 2024 · 2 revisions
  1. Open a command prompt, change the working directory to C:\Workshop\Chapter2, and execute code . (don't forget the . after code).

    Command Prompt

  2. Just below the menu bar, you'll see an information message about "Restricted Mode". Click on the "Manage" link.

    Restricted Mode

  3. Then click on the "Trust parent" button.

    Trust Parent

  4. In the explorer view on the left, click on "service.ps1" to open the file. A popup window will ask you to install the PowerShell extension. Click on "Install".

    PowerShell Extension

  5. Once installed, you'll have access to code completion, hover, run, and format features for the PowerShell language:

    • Code completion: Type anything, then press Ctrl + Space.
    • Hover: Pass the mouse cursor over any function or variable name.
    • Run: Press F8.
    • Format: Press Alt + Shift + F.

For more information, read the VS Code User Interface documentation.


Next chapter

Clone this wiki locally