-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
formattingSource formatter issuesSource formatter issuesjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)
Description
- VSCode Version: 1.19.1
- OS Version: 10.13.2
Steps to Reproduce:
- Setup workspace config
{
// Exclude specific files from the explorer
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"src/**/*.js": {
"when": "$(basename).ts"
},
"src/**/*.js.map": {
"when": "$(basename)"
}
},
// Format the document when saved
"editor.formatOnSave": true,
// Enables/Disables using spaces instead of tabs
"editor.insertSpaces": false,
// Enables/Disables automatic indentation detection
"editor.detectIndentation": false,
// Defines whether an open brace is put onto a new line for functions or not.
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
// Defines whether an open brace is put onto a new line for control blocks or not.
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
// Defines whether an open brace is put onto a new line for functions or not.
"javascript.format.placeOpenBraceOnNewLineForFunctions": true,
// Defines whether an open brace is put onto a new line for control blocks or not.
"javascript.format.placeOpenBraceOnNewLineForControlBlocks": true
}
- Create Typescript file with
Switch
andCase
statements. Add block braces inside of theCase
block and format the document. The braces are indented beyond theCase
statement level. They should align withCase
.
joshtynjala
Metadata
Metadata
Assignees
Labels
formattingSource formatter issuesSource formatter issuesjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)