DEV Community

Discussion on: Developing like a pro, on Windows

Collapse
 
roryo profile image
Rory O'Connell

Regarding screenshots MS is replacing the old snipping tool with a much better one, snip and sketch: microsoft.com/store/productId/9MZ9...

Other random things. The largest barrier to entry for getting comfortable with PowerShell was actually editing the command line. New versions of PowerShell set up well-known unix aliases (ls, cp, md etc) to their pwsh equivalent. However, actually editing and navigating the cli is awkward. pwsh 5.0 and up supports emacs (default bash) and vim keybindings. Set-PSReadLineOption -EditMode Emacs (or Vim if one likes vim style cli editing) and you're off.

Chocolatey supports a userland install so you don't need a UAC elevated shell. However it warns, rightly, that most Windows programs don't like userland installation. You could instead create a sudo like pwsh alias. The base command is Start-Process -Verb runas -ArgumentList "list of arguments" commandname. From there one can make a sudo function.

There's loads of powerful functionality with Powershell in the MS provided Powershell Gallery as well.

MS is quite the different company now than it was 5-10 years ago. New projects are almost always open source, the Windows 10 model is a modern SAAS model, they care about things other than windows. It's a strange, yet good time.