有人说直接修改:
/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.css
这个文件的办法,效果并不好,只是修改文件夹字体,文件字体还是小。另外修改后vscode会经常提示你不支持啊,重安装了,看着不爽。就这句:
Your Code installation appears to be corrupt. Please reinstall.
正确办法是Control+Shift+P (或command +Shift+P for MacOS )然后直接修改setting.json文件:
{
"editor.fontSize": 18,
"dart.flutterSdkPath": "/usr/local/opt/dart/libexec",
"explorer.confirmDelete": false,
"go.docsTool": "gogetdoc",
"explorer.confirmDragAndDrop": false,
"window.zoomLevel": -1,
"terminal.integrated.rendererType": "dom",
"sync.gist": "de49b4750ecc9401115bf00f75ae08a9",
"editor.renderWhitespace": "all",
"[go]": {
"editor.fontSize": 15,
}
}
window.zoomLevel 是整体的放大级别,你可以改成0.8,1,2,随你。侧边栏字体放大后,编辑区可能字会太大。你改小editor.fontSize就行了。你可以为每种语言单独设置字体,但放大级别好象不支持。