Visual Studio Code: Difference between revisions

Malix (talk | contribs)
enhancement: general
Kaya (talk | contribs)
Add infobox
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{note|Visual Studio Code is [[FAQ/unfree|unfree]], its license prohibits distribution. See the [[FAQ/unfree]] page to install unfree software.}}
{{note|Visual Studio Code is [[FAQ/unfree|unfree]], its license prohibits distribution. See the [[FAQ/unfree]] page to install unfree software.}}{{Infobox application
 
| name = Visual Studio Code
Visual Studio Code is a cross-platform text editor developed by Microsoft, built on the Electron framework.
| type = Text Editor
| image = Visual_Studio_Code_1.35_icon.svg
| developer = Microsoft
| website = https://code.visualstudio.com/
| documentation = https://code.visualstudio.com/docs
| bugTracker = https://github.com/microsoft/vscode/issues
| github = https://github.com/microsoft/vscode
| programmingLanguage = TypeScript, JavaScript, HTML, CSS
| os = Linux, macOS, Windows
| initialRelease = 29 April 2015
}}
'''Visual Studio Code''' is a cross-platform text editor developed by Microsoft, built on the Electron framework.


For the free distribution of the VS Code codebase (without MS branding, telemetry, and [https://marketplace.visualstudio.com/ extension marketplace] replaced by [https://open-vsx.org/ Open VSX]) see [[VSCodium]].
For the free distribution of the VS Code codebase (without MS branding, telemetry, and [https://marketplace.visualstudio.com/ extension marketplace] replaced by [https://open-vsx.org/ Open VSX]) see [[VSCodium]].
Line 161: Line 172:
== 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 ==


Line 313: Line 321:
</syntaxHighlight>
</syntaxHighlight>


=== Timeout ===
If you're using fish or other shell, set this in the user settings JSON on the client machine:
<syntaxHighlight lang=bash>
"remote.SSH.useLocalServer": false
</syntaxHighlight>
See https://github.com/microsoft/vscode-remote-release/issues/2509 and https://github.com/nix-community/nixos-vscode-server/issues/18


[[Category:Applications]]
[[Category:Applications]]


[[Category:IDE]]
[[Category:IDE]]