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
- The extension scans workspace files matching
**/*.{ps1,psm1,psd1}.
- It parses each file for PowerShell
function declarations.
- Files without functions are excluded from the tree view.
- Function items include the function name, line location, and parameter summary when available.
- 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.
| |