有你在真好 的个人博客
CHROME DEVELOP TOOLS的字体字号
阅读:2321 添加日期:2021/3/22 16:07:19
"

Google不知道是咋搞的,我猜是故意的吧。Chrome Develop Tools对于JavaScript的调试真是方便,不过它的default的字体大小,也太让人头大了,尤其是对我这种视力很差,迫切不要大字体的人来说,简直就是折磨。Google故意留了这么个招,可以搞定这件事情,又让每个人都去寻寻觅觅才能搞定,哎,无意问苍天啊~~~~

 

Linux 下:$HOME/.config/google-chrome/Default/User StyleSheets/Custom.css 文件,

Windows 7下:%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css 文件,

如果没有,就创建这么一个文件就好啦,在这个文件中加入以下内容,字体字号就变大了。因为这是一个CSS文件,各位童鞋还可以根据自己的需要自行调整字体字号大小。

 

body.platform-linux .monospace, body.platform-linux .source-code *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}

.go-to-line-dialog *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}

#toolbar *{
   font-size: 12px !important;
   font-family: "ubuntu" !important;
}

#toolbar-dropdown *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}

.panel *, #drawer *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}
iframe.extension *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}
.sidebar *{
   font-size: 20px !important;
   font-family: "FreeMono" !important;
   font-weight: bold; !important;
}

#console-messages *{
   font-size: 12px !important;
}


"
ICP备案号:苏ICP备14035786号-1 苏公网安备 32050502001014号