My understanding is that splatting variables is the preferred/recommended way to make longer function calls in PowerShell scripts. However, I use vscode as my primary IDE and understandably, extracting the parameters into a hashtable and splatting them makes intellisense unusable.
Is there any library/framework/vscode extension for splatting that allows the use of intellisense by way of naming convention or something like that?
I assumed the same thing recently—and it's likely changed since you first asked the question—but vscode apparently supports intellisense for splatted arguments now. I came looking for information on it (and finding this question) because I was so stunned by seeing suggestions for splatted arguments!
Before
$args
here is going to be splatted toNew-AzCdnOrigin
, but hasn't been yet:So no suggestions so far:
After
Suggestions from the parameters of
New-AzCdnOrigin
, even omitting those already added: