Last active
August 29, 2015 14:21
-
-
Save mattmcnabb/0b99a41a0ac9795afba1 to your computer and use it in GitHub Desktop.
IndentStyle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Indent style for multiline hashtables | |
# I tend to think of the assignment and opening '@{' as | |
# one token. | |
$Capabilities = @{ | |
MilitaryService = $false | |
DrinkAlcohol = $false | |
Vote = $false | |
} | |
# This usage works nearly everywhere for me | |
$Whatev | Foreach { | |
Get-Something | |
Do-Something | |
} | |
# and then C# style braces everywhere else | |
foreach ($Item in $Items) | |
{ | |
Get-Something | |
Do-Something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment