Giter VIP home page Giter VIP logo

com.visualstudio.code's Introduction

Visual Studio Code Flatpak

๐Ÿšจ Warning: This is an unofficial Flatpak build of Visual Studio Code, generated from the official Microsoft-built .deb packages here.

Table of Contents

Usage

Most functionality works out of the box, though please note that flatpak runs in an isolated environment and some work is necessary to enable those features.

Execute commands in the host system.

To execute commands on the host system, run inside the sandbox:

$ flatpak-spawn --host <COMMAND>

or

$ host-spawn <COMMAND>

  • Most users seem to report a better experience with host-spawn

Use host shell in the integrated terminal.

Another option to execute commands is to use your host shell in the integrated terminal instead of the sandbox one.

For that go to File -> Preferences -> Settings and find Terminal > Integrated > Profiles, then click on Edit in settings.json (The important thing here is to open settings.json)

And make sure that you have the following lines there:

flatpak-spawn --host

{
  "terminal.integrated.defaultProfile.linux": "bash",
  "terminal.integrated.profiles.linux": {
    "bash": {
      "path": "/usr/bin/flatpak-spawn",
      "args": ["--host", "--env=TERM=xterm-256color", "bash"],
      "icon": "terminal-bash",
      "overrideName": true
    }
  }
}

host-spawn

    "terminal.integrated.defaultProfile.linux": "bash",
    "bash": {
      "path": "/app/bin/host-spawn",
      "args": ["bash"],
      "icon": "terminal-bash",
      "overrideName": true
    },
  • You can change bash to any terminal you are using: zsh, fish, sh.
  • overrideName allows for the 'name' (or whatever you set it to) of the shell you're using to appear (e.g. normally zsh, fish, sh).

Support for language extension.

Some Visual Studio extension depends on packages that might exist on your host, but they are not accessible thought Flatpak. Like support to programming languages: gcc, python, etc..

See available SDK:

$ flatpak run --command=sh com.visualstudio.code
$ ls /usr/bin (shared runtime)
$ ls /app/bin (bundled with this flatpak)

Getting support for additional languages, you have to install SDK extensions, e.g.

$ flatpak install flathub org.freedesktop.Sdk.Extension.dotnet
$ flatpak install flathub org.freedesktop.Sdk.Extension.golang
$ FLATPAK_ENABLE_SDK_EXT=dotnet,golang flatpak run com.visualstudio.code

Finding other SDK

flatpak search <TEXT>

Support

Please open issues under: https://github.com/flathub/com.visualstudio.code/issues

com.visualstudio.code's People

Contributors

barthalion avatar bilelmoussaoui avatar boeithwoibjeqiogroeq avatar bytzo avatar catsout avatar dac73 avatar deadmeu avatar eos-shell-build avatar eszlari avatar fakeshemp avatar flathubbot avatar flipflop97 avatar gasinvein avatar ironhaven avatar jcnils avatar jwillikers avatar mkfrey avatar mzabaluev avatar nedrichards avatar nikodunk avatar praymundo avatar ramcq avatar ran-dall avatar razzeee avatar refi64 avatar surendrajat avatar tingping avatar vwalek avatar walking-octopus avatar wjt avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.