Visual Studio Code
Running natively under Wayland
Visual Studio Code uses Electron, see Wayland#Electron for more information on how to run it natively under Wayland.
--enable-features=WebRTCPipeWireCapturer --ozone-platform-hint=auto
Native file dialog
If using Plasma, by default VS Code opens GTK file dialogs. To fix that, ensure that KDE desktop portal (xdg-desktop-portal-kde) is installed and set the GTK_USE_PORTAL=1 environment variable. also (xdg-desktop-portal-gtk) maybe needed.
Create ~/.config/xdg-desktop-portal directory
mkdir ~/.config/xdg-desktop-portal
Create kde-portals.conf file
nano ~/.config/xdg-desktop-portal/kde-portals.conf
Paste
[preferred]
default=kde;gtk
org.freedesktop.impl.portal.FileChooser=kde
Set GTK_USE_PORTAL=1 environment variable in /etc/environment, or to prevent break other things set env per application instead.