We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a2f71c commit b82219bCopy full SHA for b82219b
package.json
@@ -416,8 +416,8 @@
416
"type":"string",
417
"enum": [
418
"Custom",
419
- "KR-Stroustrup",
420
- "KR-OTBS",
+ "KR_Stroustrup",
+ "KR_OTBS",
421
"Allman"
422
],
423
"default": "KR-Stroustrup",
src/settings.ts
@@ -7,8 +7,15 @@
7
import vscode = require('vscode');
8
import utils = require('./utils');
9
10
+enum CodeFormattingPreset {
11
+ Custom,
12
+ KR_Stroustrup,
13
+ KR_OTBS,
14
+ Allman
15
+}
16
+
17
export interface ICodeFormattingSettings {
- preset: string;
18
+ preset: CodeFormattingPreset;
19
openBraceOnSameLine: boolean;
20
newLineAfterOpenBrace: boolean;
21
newLineAfterCloseBrace: boolean;
0 commit comments