Before fix:
-
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
). -
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
Credits: This fix is a modified version of the original fix suggested in Reddit.
After fix:
Note: this Fix must be applied manually again, everytime VSCode is updated.