How do I increase the font size when viewing a rendered markdown (.md) file in WebStorm? Follow
I love the built-in support for simultaneous editing and viewing of markdown (e.g., readme.md) files in WebStorm 2016.3.
What I cannot seem to figure out is how to increase the font size of just the rendered (right-most section of the screen) portion of the markdown file.
I have turned on mouse-wheel font increase/decrease (hold Ctrl key while using the mouse wheel) which works really great on the left-side (raw markdown text), but has no effect on the rendered markdown (right-side). When I use the Ctrl+mouse wheel in that right-side of the side-by-side raw/rendered markdown windows, it just scrolls up and down.
This is an issue on my high resolution laptop and I would prefer not to make a global change (either to Windows 10 or throughout WebStorm), but if that's the only work-around for this issue, so be it.
Please sign in to leave a comment.
You can try using your own css for preview (File | Settings | Languages & Frameworks | Markdown) - see https://youtrack.jetbrains.com/issue/RUBY-17295#comment=27-1165037
The suggested solution does not work.
Here are the steps I tried that did not work:
body {
front-size: 200% ! important;
}
What else can I try to fix this problem?
Just checked
body {
font-size: 300% !important;
}
works fine for me. `!important` is necessary to override IDE scaling.
Please also make sure that Preview browser is set to 'JavaFX WebView'
Still not working, with WebStorm 2017.1.1-EAP.
I had two different Markdown plugins - one from JetBrains and one from a 3rd-party.
I disabled the 3rd-party one.
I went to the place in Languages & Frameworks mentioned above, unchecked the "Apply CSS from URI" and checked "Apply custom CSS text" with the same body 300% with important, as shown above, but when I Apply, nothing happens. No error message. Nothing.
I cannot find where to set the "Preview browser" in WebStorm's settings, so maybe that's the issue? Where exactly can I find that setting?
I have pretty much given up on using WebStorm to edit my readme.md files since I cannot see what the rendered output looks like. Fortunately, I also have Visual Studio 2017 which does what I need for markdown files (dynamically adjustable font size in rendered portion). I just wish I didn't have to switch tools just to be able to see the rendered markdown in other than tiny, unreadable (on my 4K high resolution laptop screen) font.
>I cannot find where to set the "Preview browser" in WebStorm's settings, so maybe that's the issue? Where exactly can I find that setting?
Preferences | Languages & Frameworks | Markdown | Preview, Preview browser
Webstorm 2018.1.3, Windows 10
Body font size is not working.
There is no option for Preview browser
this is NOT a zoomed in view
Please follow https://youtrack.jetbrains.com/issue/RUBY-21555 for updates
Frederick,
There is a typo in your CSS fragment: it's a font-size, not a front-size.
body {
front-size: 200% ! important;
}
This thread helped me find a solution for me. Thanks anyway.
While I mistakenly typed front-size in my "steps to recreate" post, I did always enter font-size into the actual WebStorm IDE.
That being said, today, August 8, 2021, using WebStorm 2021.2, Build WS-212.4746.80, built on July 23, 2021, I tried doing the same steps I described in an earlier post.
While the change in CSS style did not take place by clicking the Apply button, those CSS style changes did take place after I clicked the OK button, which I consider a small price to pay to finally have this problem resolved.
Got it. Your post must have made the support team fix this. I was just lucky that I didn't have a trouble when I tried it using the latest release PyCharm.
Jetbrains team, isn't it a bug that Ctrl/Cmd+mouse wheel doesn't increase the font size in Markdown previews?
Maybe it's not, but it would be a very handy feature. Please consider implementing it.
On an unrelated note, typing "@Jetbrain" here shows several "Jetbrains" account. Are the all real?
Ekaterina Prigara
Please vote for https://youtrack.jetbrains.com/issue/IDEA-232254/Add-ability-to-change-markdown-preview-font-size to get notified on any progress with this feature request