Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>psfuncNew to Visual Studio Code? Get it now.
psfunc

psfunc

Thijs Roeloffs

|
1 install
| (0) | Free
Shows PowerShell functions in workspace files and displays them in a tree view.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

psfunc

PowerShell function explorer for Visual Studio Code.

Features

  • Displays a tree view of PowerShell functions found in workspace files with extensions .ps1, .psm1, and .psd1.
  • Only files that contain at least one PowerShell function are shown in the tree.
  • Functions are grouped by workspace folder and directory structure.
  • Click a function node to open the file and jump directly to its definition.
  • Click a file node to open the file.
  • Refresh the function tree using the Refresh PowerShell Function Tree command.

How it works

  1. The extension scans workspace files matching **/*.{ps1,psm1,psd1}.
  2. It parses each file for PowerShell function declarations.
  3. Files without functions are excluded from the tree view.
  4. Function items include the function name, line location, and parameter summary when available.
  5. Comments immediately above a function are used to extract a synopsis if present.

Commands

  • psfunc.refreshTree — Refresh the function explorer tree.
  • psfunc.openFunction — Open a file and navigate to the selected function.
  • psfunc.openFile — Open the selected PowerShell file.

Notes

  • The explorer only includes workspace files that actually contain PowerShell functions.
  • Folder structure in the tree reflects the workspace path hierarchy.

Release Notes

0.0.1

  • Initial release: PowerShell function tree explorer with file and function navigation.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft