Skip to main content How to install VS code? : r/voidlinux

How to install VS code?

Hey,

I installed VS code using this code: xbps-install VScode

but I've got CODE-OSS instead of the real VS code and I can't sync my account with this new app to get my saved extensions

so can someone help me how to install the real Visual Studio code? or at least how to link my VS account to this app?

Learn by doing - Cloud, Kubernetes, Python, and more. Get your teams up to speed faster with interactive labs and sandboxes to gain hands-on experience. No environment to set up, no software to install.
  • O'Reilly builds AI-ready teams
  • O'Reilly builds AI-ready teams
  • Learn by doing - Cloud, Kubernetes, Python, and more. Get your teams up to speed faster with interactive labs and sandboxes to gain hands-on experience. No environment to set up, no software to install.
  • O'Reilly builds AI-ready teams
  • Learn by doing - Cloud, Kubernetes, Python, and more. Get your teams up to speed faster with interactive labs and sandboxes to gain hands-on experience. No environment to set up, no software to install.
  • Learn by doing - Cloud, Kubernetes, Python, and more. Get your teams up to speed faster with interactive labs and sandboxes to gain hands-on experience. No environment to set up, no software to install.
  • Best
    Open comment sort options
    Edited

    Code - OSS is the real VSCode, just with Microsoft branding disabled since it isn't compiled by Microsoft or a MS-approved distribution of VSCode, for trademark and licensing reasons.

    If you need the Microsoft branded version, you can use flatpak.

    You can read here for more details: https://github.com/microsoft/vscode/wiki/Differences-between-the-repository-and-Visual-Studio-Code

    Here : https://github.com/void-linux/void-packages/tree/master/srcpkgs/vscode

    You have to delete the do_configure function in the TEMPLATE file, this function removes the Microsoft telemetry.

    Also, you have to remove all files from the patches directory in order to remove some patches applied to have fully-working OSS Code version (ex: the tricky way to have the official Microsoft extensions marketplace, or change the icon, program name to code-oss). https://github.com/void-linux/void-packages/tree/master/srcpkgs/vscode/patches

    After that I think you can ./xbps-src pkg vscode (see this guide) (I don't know if it works you can verify)

    Note : The easiest solution is certainly to install VSCode with Flatpak

    Do you know perchance why Github Copilot doesn't show up / work at all (even after installing the extension) in vscode? Thank you. Running latest template 1.100.3.

    I'm having the same problem. Did you find a solution?

    More replies
    More replies
    More replies
    Edited

    Have you considered using the flatpak? In my opinion it's the best way to use proprietary apps.

    sudo xbps-install -S flatpak
    flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

    Then restart your system. Then install VScode

    flatpak install flathub com.visualstudio.code

    Now you can run it with

    flatpak run com.visualstudio.code

    Note that you do not need to use sudo for the flatpak commands.

    Thank you.
    Are flatpak apps stable?

    Milage varies just like repo packages. It just depends if the upstream maintainer updates them frequently enough. There's nothing about flatpak itself as a technology that makes it more or less "stable"

    More replies
    More replies
    What if AI ran the busywork?

    You'll need to clone

    https://github.com/void-linux/void-packages

    And follow the bootstrap instructions.

    It's easier than first glance.

    Profile Badge for the Achievement Top 1% Commenter Top 1% Commenter

    there is no template for the microsoft binary vscode

    Oops my mistake, thanks. That's what I get for answering on a phone without checking the template.

    More replies
    More replies
    [deleted]

    Comment removed by moderator

    Sorry, your submission has been marked as spam. It looks like you mentioned 'xdeb'; we do not condone the use of this tool as it will likely destroy your system.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [deleted]

    Comment removed by moderator

    More replies
    More replies
    More replies