Get-ProjectCodeContent
is a PowerShell script that captures a code project's directory structure and file contents, then copies it to the clipboard.
- Captures full directory structure recursively
- Optionally exclude directories
- Extracts file content
- Formats the directory structure and file content
- Copies the formatted content to the clipboard
- Optionally output the content to the console
- Optionally output verbose logging to the console
- https://learn.microsoft.com/en-us/powershell/scripting/samples/working-with-files-and-folders?view=powershell-7.4
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_split?view=powershell-7.4
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows?view=powershell-7.4
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_try_catch_finally?view=powershell-7.4
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-clipboard?view=powershell-7.4
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-clipboard?view=powershell-7.4