A quick way to display a clean, ASCII-style tree view of your project in PowerShell β no file attributes, just folder/file hierarchy β while excluding unwanted directories and patterns like __pycache__, .venv, and *.pyc.
Install-Module PSTree -Scope CurrentUserThe
-Scope CurrentUserflag installs the module for your user only, without requiring admin rights.
Get-PSTree -Path . -Recurse -Exclude "__pycache__","*.pyc",".venv" | ForEach-Object HierarchyGet-PSTreeβ retrieves a hierarchical view of directories and files.-Path .β start from the current directory.-Recurseβ traverse all subdirectories.-Exclude "__pycache__","*.pyc",".venv"β skips Python caches, virtual environments, and compiled files.| ForEach-Object Hierarchyβ prints only the tree hierarchy (folder/file indentation lines), omitting all file attribute columns.
For customization options (ASCII/Unicode tree styles, colors, depth, etc.), see the official docs: π about_TreeStyle.md (PSTree Documentation)