How do you change the Markdown preview font size in IntelliJ IDEA?

牧云@^-^@ 提交于 2020-12-01 09:22:06

问题


How do you change the Markdown preview font size in IntelliJ IDEA 2017.1? The default font size so small it's useless.

I've tried changing:

Preferences > Editor > Colors and Fonts > Font > Primary font
Preferences > Editor > Colors and Fonts > Font > Secondary font
Preferences > Editor > Colors and Fonts > Markdown
  (this doesn't have any font or size options)
⌘->scroll wheel

I can change the font size in editor windows, but I haven't found the trick for changing the Markdown preview window font.

I also use

Preferences > Appearance & Behavior > Appearance > Override default fonts by

And even that doesn't change the font size.

I'm using

IntelliJ IDEA 2017.1
Build #IC-171.3780.95, built on March 20, 2017
JRE: 1.8.0_112-release-736-b13 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.3

回答1:


At the moment font size for the preview can be changed only via custom CSS.

body {
    font-size: 80% !important;
}

Related request you can vote for to make it easier to change:

  • RUBY-19148 Markdown rendering window does not support mouse wheel font size increase/decrease



回答2:


File > Settings > Search for 'preview' > Page Zoom (allows values from 0.1 to 10). If you set this to around 1.5 it works well. Use the decimal places to get it just right.



来源:https://stackoverflow.com/questions/42930593/how-do-you-change-the-markdown-preview-font-size-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!