VsCode 添加忽略meta文件
文件 >> 首选项 >> 设置 >> 在settings.json 中编辑

settings.json 中添加如下配置
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/*.meta":true
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/.git": true,
"**/.svn": true,
"**/*.meta":true
},
"tsimporter.filesToScan":[
"**/*.ts",
"**/*.tsx",
"**/*.vue"
],
"git.ignoreMissingGitWarning": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
"git.ignoreLegacyWarning": true,
"csharp.format.enable": false,
"editor.fontSize": 22,
"workbench.colorTheme": "Monokai",
"editor.autoIndent": "full",
"window.zoomLevel": -1,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.addMissingImports.ts": "explicit",
// "source.removeUnusedImports": "explicit",
"source.sortImports": "explicit",
},
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "todo",
"color": "#FF8C00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
}
]
}
常用插件:https://mp.weixin.qq.com/s?__biz=MzU0NjgzMDIxMQ==&mid=2247631260&idx=2&sn=d4fc6239918cbf089e40bf57cb90c9b6&chksm=fa58f0831ab64d74c933d34a703f1235041dd23f1ed959e978a6053a7c479d82dd2004caee85&scene=27
共有 0 条评论