2018-05-29 09:57:50 +08:00
|
|
|
// 将设置放入此文件中以覆盖默认值和用户设置。
|
2018-05-24 17:13:23 +08:00
|
|
|
{
|
2018-05-29 09:57:50 +08:00
|
|
|
"typescript.tsdk": "node_modules\\typescript\\lib",
|
|
|
|
//格式化设置
|
|
|
|
"editor.tabSize": 4,
|
2022-02-16 13:48:57 +08:00
|
|
|
"editor.formatOnPaste": false,
|
2018-05-29 09:57:50 +08:00
|
|
|
"editor.formatOnSave": true,
|
2022-02-16 13:48:57 +08:00
|
|
|
"editor.insertSpaces": true,
|
|
|
|
"editor.detectIndentation": false,
|
2018-05-29 09:57:50 +08:00
|
|
|
//格式设置
|
|
|
|
"typescript.format.placeOpenBraceOnNewLineForFunctions": true,
|
|
|
|
"typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
|
|
|
|
"typescript.referencesCodeLens.enabled": true,
|
|
|
|
"javascript.format.placeOpenBraceOnNewLineForFunctions": true,
|
|
|
|
"javascript.format.enable": true,
|
|
|
|
"files.insertFinalNewline": true,
|
2022-02-16 13:48:57 +08:00
|
|
|
"typescript.format.semicolons": "insert",
|
|
|
|
"files.trimFinalNewlines": true,
|
|
|
|
"files.trimTrailingWhitespace": true,
|
|
|
|
//保存时
|
|
|
|
"editor.codeActionsOnSave": {
|
|
|
|
"source.organizeImports": true,
|
|
|
|
},
|
|
|
|
"gitlens.remotes": [
|
|
|
|
{
|
|
|
|
"domain": "gitee.com",
|
|
|
|
"type": "Custom",
|
|
|
|
"name": "码云",
|
|
|
|
"protocol": "https",
|
|
|
|
"urls": {
|
|
|
|
"repository": "https://gitee.com/cf-fz/${repoPath}",
|
|
|
|
"branches": "https://gitee.com/cf-fz/${repoPath}/branches",
|
|
|
|
"branch": "https://gitee.com/cf-fz/${repoPath}/commits/${branch}",
|
|
|
|
"commit": "https://gitee.com/cf-fz/${repoPath}/commit/${id}",
|
|
|
|
"file": "https://gitee.com/cf-fz/${repoPath}?path=${file}${line}",
|
|
|
|
"fileInBranch": "https://gitee.com/cf-fz/${repoPath}/blob/${branch}/${file}${line}",
|
|
|
|
"fileInCommit": "https://gitee.com/cf-fz/${repoPath}/blob/${id}/${file}${line}",
|
|
|
|
"fileLine": "#L${line}",
|
|
|
|
"fileRange": "#L${start}-L${end}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2018-05-24 17:13:23 +08:00
|
|
|
}
|