Skip to content

Instantly share code, notes, and snippets.

@kbdharun
Last active November 20, 2024 09:32
Show Gist options
  • Save kbdharun/65b14ea450560d326f11d3283a9313d1 to your computer and use it in GitHub Desktop.
Save kbdharun/65b14ea450560d326f11d3283a9313d1 to your computer and use it in GitHub Desktop.
Fix Blurry VSCode in Wayland under HiDPI laptop displays in Linux

Guide to fix blurry VSCode in Wayland under HiDPI laptop displays in Linux

Before fix:

image

  1. Open the Terminal and in your preferred text editor open /usr/share/applications/code.desktop with administrative privilages (i.e. sudo nano /usr/share/applications/code.desktop).

  2. Now comment out the existing Exec line by adding # to the front and add the below line:

Exec=/usr/share/code/code %F --enable-features=UseOzonePlatform --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto --unity-launch

image

Credits: This fix is a modified version of the original fix suggested in Reddit.

After fix:

image

Note: this Fix must be applied manually again, everytime VSCode is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment