-
Notifications
You must be signed in to change notification settings - Fork 510
snippit PSCustomObject #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
No such snippet exists atm. I'm not sure about the utility of the snippet as defined above since my PSCustomObject is very likely to have different fields than your PSCustomObject (Name, Description, Path). So the expansion wouldn't save me much if I had to delete most of it. Perhaps the snippet could be tweaked to define a single name/value set of placeholders. BTW you can pretty easily create your own custom snippets - see https://code.visualstudio.com/docs/editor/userdefinedsnippets#_creating-your-own-snippets This would give you a chance to experiment with the snippet and hone it. |
ok very good point, thanks something like this:
and for hashtable
|
This will be just a matter of adding these snippets to: |
Added snippets for PSCustomObject and Hashtable Fixes PowerShell#1186
Added snippets for PSCustomObject and Hashtable Fixes #1186
Sorry I ask again to add a snippit..:-)
but Is it possible you add a snippit for PSCustomObject
e.g
[PSCustomObject]@{
Name = $Name
Description = $Description
Path = $Path
}
Or is there already a snippit for it?
thanx
The text was updated successfully, but these errors were encountered: