diff --git a/docs/community_snippets.md b/docs/community_snippets.md index 28a3803ba0..1764d95a70 100644 --- a/docs/community_snippets.md +++ b/docs/community_snippets.md @@ -16,11 +16,28 @@ _To contribute, check out our [guide here](#contributing)._ | Table of Contents | |:-----------------:| +| [CalculatedProperty](#calculatedproperty): _Create a calculated property for use in a select-object call by @corbob_ | | [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ | | [DateTimeWriteVerbose](#datetimewriteverbose): _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ | ## Snippets +### CalculatedProperty + +Create calculated property for use in Select Statements + +#### Snippet + +```json +"Add Calculated Property": { + "prefix": "cf", + "body": [ + "@{'Name' = '$1' ; 'Expression' = {$2}}", + ], + "description": "Create calculated property for use in Select Statements" +} +``` + ### PSCustomObject A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.