WebStorm 10: No scaling on 4k display

WebStorm 10 is almost unusable on a 4k high resolution display.  The fonts, icons, toolbars, etc. are all very tiny now.  WebStorm 9 actually worked OK in this regard.  Is there a way to revert this behavior to scale everything up?

7 comments
Comment actions Permalink

Hi there,

Try adding "-Dhidpi=true" in idea.exe.vmoptions

0
Comment actions Permalink

Thanks!!  

Incidentally, for WebStorm on Windows, I put it in these two files rather than idea.exe.vmoptions, but thanks for the tip!
     WebStorm64.exe.vmoptions
     WebStorm.exe.vmoptions

0
Comment actions Permalink

I'm using WS 12 EAP (144.3143.5) in Linux (64-bit Debian) w/ OpenBox for a window manager. Adding `-Dhidpi=true` to `webstorm.vmoptions`, `webstorm64.vmoptions`, or (new file) `idea.vmoptions` in the `bin` folder seems to have no effect. Any suggestions?

 

0
Comment actions Permalink

I tried what you suggested. Doesn't seem to work. Any other fix for this issue ?

 

0
Comment actions Permalink

This took some experimenting and more research than I would like to admit, but I found a solution for my setup (a 4k display on my laptop running Windows 10 and PyCharm 2017 with an external monitor connected through HDMI).

First in Webstorm (or PyCharm in my case) click Help Menu > Edit Custom VM Options.
Add this line below to that file:

-Dhidpi=false

Then in windows find the exe file for your IDE (in my case it's C:\Program Files\JetBrains\PyCharm 2017.2\bin\pycharm64.exe)
Right click on this file and choose properties.
In the Compatibility tab, check the box for Override high DPI scaling behavior, and select System from the dropdown menu.


Hope this helps other people facing the same issue.

0
Comment actions Permalink

Brilliant that worked for me @Gold. I've got different scaling factors across my displays, and this resolved that.

0
Comment actions Permalink

Awesome @Robert. 

As a follow up to this, I've noticed some different results depending on whether I signed in to windows with my 1080p monitor attached or whether I signed in with no other displays connected to my laptop's 4k screen. 

The plugin linked below is helping me to manage two different font-size profiles that I can switch between on the fly. That way I do not need to restart windows to get my solution above to work.

https://plugins.jetbrains.com/plugin/9541-hidpi-profiles

1

Please sign in to leave a comment.