PowerShell Explorer

The PowerShell Explorer allows you to view the AST, Modules and Providers in your PowerShell Environment.

Viewing the PowerShell Explorer Window

AST Explorer

You can explore the AST of the current PowerShell file by using the AST node in the PowerShell Explorer. Open a PS1 or PSM1 file and click the refresh button. The AST node will show which file the AST is currently showing. You can then click the nodes within the AST. Click the Select AST button to highlight the text in the editor that relates to that AST node.

Selecting an AST Node

If you want to clear the AST node selection, click the Clear Selection button.

Clear the AST Selection

Host Process Explorer

The host process explorer let's you view processes running PowerShell on your machine. You can click the Attach button to use the One-Click Attach feature.

Modules Explorer

The Module Explorer node provides the ability to view modules within your PowerShell environment. It will list all the modules and their versions directly in the tree view. If there is an updated version of a module, the update icon will be available and a description on the node will state the updated version that is available on the gallery. You can click the update button to update that module.

Module Explorer in VS Code

Provider Explorer

You can use the PowerShell Provider Explorer in the PowerShell Explorer window to traverse providers in your environment.

Insert Selected Item Paths into Scripts

You can insert selected item paths into scripts using the Insert Path command.

Insert Provider Path

View Item Properties

You can view the properties of a container or item by using the View Item Properties command.

View Child Items

You can view child items in a grid by using the View Items command on containers.

Variable Explorer

The Variable Explorer allows you to see a variables defined in your session without being in the debugger. You can expand and view their properties. Clicking the refresh button will refresh the variable list.

Variable Explorer

Insert Variables into Scripts

You can insert selected variables into scripts using the Insert Variable button.

Selecting nested properties will insert the path to the property into the script.