CHROME DEVELOP TOOLS的字体字号

CSS/设计
467
0
0
2022-03-22
标签   CSS字体

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;
}