Visual Studio Code: Difference between revisions

Malix (talk | contribs)
enhancement: general
Malix (talk | contribs)
Wayland: relocate
Line 161: Line 161:
== Wayland ==
== Wayland ==


To use VS Code under Wayland, set the environment variable <code>NIXOS_OZONE_WL=1</code> ([https://github.com/NixOS/nixpkgs/commit/b2eb5f62a7fd94ab58acafec9f64e54f97c508a6 ''Source''])
To make sure VSCode runs on Wayland native instead of Xwayland, you can make it use Ozone Wayland by setting the environment variable <code>NIXOS_OZONE_WL</code> with <code>NIXOS_OZONE_WL=1</code>


=== Declaratively (permanent) ===
See [[Wayland#Electron and Chromium]]
<syntaxHighlight lang=nix>environment.sessionVariables.NIXOS_OZONE_WL = "1";</syntaxHighlight>


=== Imperatively (each time you launch VSCode) ===
<syntaxhighlight lang="console">NIXOS_OZONE_WL=1 code ...</syntaxhighlight>
== Updating extension versions ==
== Updating extension versions ==