Show-HelpForCurrentSelection.ps1
function Show-HelpForCurrentSelection { <# .Synopsis Shows help for the currently selected text .Description Shows helps for the currently selected text .Example Show-HelpForCurrentSelection #> param() Select-CurrentText | ForEach-Object { if (-not $_) { return } $trim = $_.Trim() Get-Help $_ -ErrorAction SilentlyContinue -Full } } |