Skip to content

Instantly share code, notes, and snippets.

@pooladkhay
Last active December 2, 2025 14:02
Show Gist options
  • Select an option

  • Save pooladkhay/d852ca76f0ca7d4e54d0e2ba786dde25 to your computer and use it in GitHub Desktop.

Select an option

Save pooladkhay/d852ca76f0ca7d4e54d0e2ba786dde25 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

@LilMonk
Copy link

LilMonk commented Sep 14, 2025

I got this working on my CachyOS Gnome DE by pasting this

--ozone-platform=wayland

in ~/.config/code-flags.conf

@frankhuurman
Copy link

I got this working on my CachyOS Gnome DE by pasting this

--ozone-platform=wayland

in ~/.config/code-flags.conf

I didn't even have that file yet but creating it with that flag fixed my blurriness issues with this VS Code version:
Version: 1.106.1

Thanks!

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