Skip to content

Instantly share code, notes, and snippets.

@cawa0505
Forked from pooladkhay/wayland-blurry-fix.md
Created October 5, 2023 02:04
Show Gist options
  • Save cawa0505/72330b054de63bd3a0c9b2c572bf5b2e to your computer and use it in GitHub Desktop.
Save cawa0505/72330b054de63bd3a0c9b2c572bf5b2e to your computer and use it in GitHub Desktop.
VSCode blurry text under Wayland

Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland

Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.

In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland, for example you'll be launching VSCode like

$ code --enable-features=UseOzonePlatform --ozone-platform=wayland

This fix can be made permanent by creating a .desktop file or by directly editing /usr/share/applications/visual-studio-code.desktop

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