前言
如题,本文解决题示问题。
环境
- VSCode
- Markdown Preview Enhanced插件
步骤
找到Markdown Preview Enhanced 的github主页:
在里面搜索font
关键字:
找到其中最相关的一个issue:Cannot change the font size in the preview #434
从这个网页中可以看到:
https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css 对我们应该很有帮助。
所以进一步访问这个网页:
果然,通过里面的信息可以知道,这个插件的字体大小等调整预览样式的文件在:
~/.mume/style.less
在windows下对应:
/c/Users/Administrator/.mume/style.less
将里面的内容改成下面的内容即可:
/* Please visit the URL below for more information: */
/* https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
// modify your style here
// eg: background-color: blue;
font-size: 10px; // 这个是关键代码
}
然后font size,即预览字体大小,就变成了10px了(原来好像是14px,对我而言略大了一点)。
小结
以上,不赘述之。
参考文献
其他参考文献已在正文标注。