Skip to content

Commit 6dbd714

Browse files
authored
Add Stroustrup style. (#896)
With three named styles it seemed appropriate to list them in alpha order. However, I left Custom first. Note that VSCode lists the names in alpha order.
1 parent ab4b4c2 commit 6dbd714

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,9 @@
416416
"type":"string",
417417
"enum": [
418418
"Custom",
419+
"Allman",
419420
"OTBS",
420-
"Allman"
421+
"Stroustrup"
421422
],
422423
"default": "Custom",
423424
"description": "Sets the codeformatting options to follow the given indent style in a way that is compatible with PowerShell syntax. For more information about the brace styles please refer to https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81."

src/settings.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import utils = require('./utils');
99

1010
enum CodeFormattingPreset {
1111
Custom,
12+
Allman,
1213
OTBS,
13-
Allman
14+
Stroustrup
1415
}
1516

1617
export interface ICodeFormattingSettings {

0 commit comments

Comments
 (0)