jhegedus
jhegedus

Reputation: 20653

HiDPI in IntelliJ 13.1, how to use it? what is it good for?

I've just seen that there is HiDPI support for Windows in IDEA 13.1 :

Support Windows/Linux HiDPI devices via -Dis.hidpi=true

What does this mean exactly ? How can I enable it ? Where should I set this flag ?

I have a high resolution monitor and having higher DPI fonts would be nice, will this setting help with that ? If yes, how can I take advantage of that ?

Upvotes: 18

Views: 15321

Answers (8)

Jaspal Singh Rathour
Jaspal Singh Rathour

Reputation: 699

I am using PyCharm and had the same problem.

  1. I edited the pycharm.exe.vmoptions file in the PyCharm programs folder (make sure you open notepad as administrator)
  2. added the line -Dis.hidpi=true - saved the file.
  3. right clicked on the pycharm.exe file and ticked DPI scaling
  4. started PyCharm
  5. in the general appearance preferences scaled the font up to 20 (I have a 4k display)
  6. in Editor > [mouse] ticked change font size with scroll mouse
  7. increased editor font by Ctrl and scroll up on mouse.

Not it looks beautiful compared to the horrible jaggy fonts that make you wish that you had never seen the grass in high resolution!

Upvotes: 6

Kunal Kapadia
Kunal Kapadia

Reputation: 3353

Newly released IntelliJ IDEA 15 has true HiDPI support for Windows and Linux. It works perfectly for me.

Upvotes: 1

holist
holist

Reputation: 91

Setting -Dhidpi=true in [your_ide_here].vmoptions file works on Linux as well (and with PhpStorm 9), as also stated on Arch Wiki https://wiki.archlinux.org/index.php/HiDPI#IntelliJ_IDEA.

Also, overriding default fonts in Appearance settings prevents HiDPI support from working in some GUI elements.

Upvotes: 1

Superfy
Superfy

Reputation: 351

For surface 3 pro, the following worked a lot better for me - with no required changes to font's or other such settings.

-Dhidpi=true

-Dis.hidpi=true did not work so well for me.

Upvotes: 3

Guest
Guest

Reputation: 21

The JetBrains team works on support of HiDPI in IntelliJ on Windows. There's an early access version: https://confluence.jetbrains.com/display/IDEADEV/IDEA+14.1+EAP (text is still blur on my computer, but maybe you'll have more luck).

Upvotes: 2

Crystal
Crystal

Reputation: 364

  1. Right click on intellij shortcut icon
  2. properties
  3. compatibility tab
  4. check -> disable display scaling

Notice you get a bit smaller icons. Of course then you need to re-size font of code.

Upvotes: 10

sweepy84
sweepy84

Reputation: 133

I've discovered that using checking "Disable display scaling on high DPI settings" in compatibility tab of the Intellij executable or shortcut does the job! I had to reinstall from scratch before it worked.

Upvotes: 10

Kaarel Saal
Kaarel Saal

Reputation: 111

Think it goes to idea.exe.vmoptions as per http://blog.jetbrains.com/idea/2006/04/configuring-intellij-idea-vm-options/#comment-85

I must say on a Surface Pro the difference was barely noticeable - font weight in code editing window is marginally bolder.

Upvotes: 3

Related Questions