


BriefDescription BuildCurrentDirectory ` Just add these to your $profile, after you've imported PSReadLine via if ($host.Name -eq 'ConsoleHost')īuilding with Shift-Ctrl-B Set-PSReadLineKeyHandler -Key Ctrl+Shift+b ` Here's Shift-Ctrl-B typing dotnet build and pressing enter. PSReadLine supports Set-PSReadLineKeyHandler which is basically hotkey bindings to any arbitrary script block. So why not make a few of these intuitive hotkeys work for me there as well? I spend a lot of time at the command line, in Windows Terminal, in PowerShell, using PSReadLine. It's built into my hands! Ctrl-Shift-T is test (even though it's non-standard, it's there, in my hands. When I want to build code I type Ctrl-Shift-B.
