1.前言
这段时间一直再搞系统相关东西,一直以来都在用source insight代码管理器,也比较方便,可是针对中文兼容性不太好。趁这个机会也接触一下vscode,界面比较好看,就是文件搜索有点慢。还有就是想把无关文件和文件夹过滤掉,结合网上资源和实际,有个脚本可以实现这些。
2.设置
设置-->文本编辑器-->文件 【在settings.json编辑】打开修改如下:
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"workbench.colorTheme": "Solarized Dark",
"editor.fontSize": 15,
"window.zoomLevel": 2,
"editor.renderIndentGuides": false,
"workbench.editor.enablePreview": false,
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"build/": true,
"temp/": true,
"library/": true,
"**/.git": true,
"**/*.o": true,
"**/*.cmd": true,
"**/*.tmp*": true,
"**/*.git*": true,
"**/*.symvers": true,
"**/*.order": true
},
"files.exclude": {
"**/.git": true,
"**/*.o": true,
"**/*.cmd": true,
"**/*.tmp*": true,
"**/*.git*": true,
"library/": true,
"local/": true,
"temp/": true,
"**/*.symvers": true,
"**/*.order": true
},
"C_Cpp.errorSquiggles": "Disabled",
"files.autoGuessEncoding": true
3.常见问题
3.1 自动检测字符编码
"files.autoGuessEncoding": true
3.2 错误检测关闭
"C_Cpp.errorSquiggles": "Disabled"