settings.json•2.46 kB
{
//
// File Settings
//
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"files.trimTrailingWhitespace": true,
"files.eol": "\r\n",
//
// Editor Settings
//
// Indentation.
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
// Wrapping.
"editor.rulers": [220],
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 220,
"editor.wrappingIndent": "indent",
// Formatting.
"editor.defaultFormatter": "vscode.typescript-language-features",
"editor.formatOnSave": true,
"editor.formatOnPaste": false,
// Code actions.
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
//
// Typescript Settings
//
// Preferences.
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.organizeImports": {
"enabled": true,
"sortImports": true,
"sortAndCombineImports": true
},
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.preferences.quoteStyle": "double",
// Formatting.
"typescript.format.enable": true,
"typescript.format.indentSwitchCase": true,
"typescript.format.insertSpaceAfterCommaDelimiter": true,
"typescript.format.insertSpaceAfterConstructor": false,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": false,
"typescript.format.insertSpaceAfterSemicolonInForStatements": true,
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": true,
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": false,
"typescript.format.placeOpenBraceOnNewLineForFunctions": false,
"typescript.format.semicolons": "insert",
// Code actions.
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnPaste.enabled": true,
}