Matt McNabb
Matt McNabb
I like Joel's point about maintaining a script down the road. I've probably lost a lot of time writing scripts when I need to go back and change single quotes...
Could this work just like format files (without the xml, of course)? A module could contain a default configuration, which could be added to with a command similar to Update-FormatData,...
In case anyone is reading this and needs to know - the line endings setting in VSCode is \r\n by default. Look for the settings **files.eol** and change it to...
@kilasuit I agree with you about ISE. I'm so used to the debugging experience there that it will be hard to switch fully to VSCode, although I now prefer it...
@rkeithhill I fully understand where you're at with the PowerShell extension, and don't get me wrong - I really dig it. I've been using VSCode for a while now to...
@torgro I think PSScriptAnalyzer rules would be a better fit for this. Depending on your editor you can get live feedback on best practices while you're writing scripts.
@daviwil I'd be glad to open the discussion on this, although I've done little real debugging in VSCode. I tend to do this in the ISE and am ready to...
I never use return or Write-Output. I tend to just let the engine output whatever isn't captured. And whenever possible I try to stream objects out one at a time...
I tend to use PascalCase everywhere, mainly because it looks more formal. Also, if I define a parameter with PascalCase, tab-completion copies that in the body of the function so...
I've definitely used scriptblocks in cases where a function didn't make sense, for no other reason than to help organize the code. Remember that this is a style guide, not...