Skip to content

Instantly share code, notes, and snippets.

@pooladkhay
Last active February 27, 2025 21:20

Revisions

  1. pooladkhay renamed this gist May 31, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. pooladkhay revised this gist May 31, 2021. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions fix.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    // Source: https://wiki.archlinux.org/title/Visual_Studio_Code#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
    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
    This fix can be made permanent by creating a ```.desktop``` file or by directly editing ```/usr/share/applications/visual-studio-code.desktop```
  3. pooladkhay revised this gist May 31, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions fix.md
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    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
  4. pooladkhay created this gist May 31, 2021.
    9 changes: 9 additions & 0 deletions fix.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    // 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