Faatuina Visual Studio Code on Linux

Pin
Send
Share
Send

Taʻitasi polokalama fai le tatau ona i ai se faʻaaoga talafeagai lea o le a ia tusia ma faʻasaʻoina le faʻamatalaga code. O le Visual Studio Code o se tasi lea o sili sili ona lelei na tufatufaina uma i luga o le Windows ma luga o le kernel Linux polokalama galue. Faʻapipiʻiina le soʻotaga faʻamatala e mafai ona faia e ala i auala eseese, taʻitasi o le a sili ona sili ona lelei mo se vaega vasega o tagata faʻaaoga. Tatou mafuta i lenei faiga i lenei aso ma tagofia uma gaioiga auiliili i le mafai.

Ae paga lea, o se tuʻufaʻatasia atinaʻe siosiomaga taʻu Visual Studio e naʻo avanoa mo PC o loʻo tamoe Windows. E tatau ona maitau i le taimi lava lea i lenei tusitusiga matou faʻaali atu le auala e download ai le Visual Studio Code source code editor - o se tasi o tali i totonu o le laina VS.

Faapipiiina Visual Studio Code on Linux

Ioe, e tele faʻasalalauga e tusia i luga o le Linux kernel. Ae ui i lea, o taʻutaʻuga faiga e faʻavae i luga o Debian poʻo Ubuntu ua sili ona lauiloa i le taimi nei. O loʻo i luga o tulaga faʻaputuga tatou te manaʻo e utagia ai, ave le manino o le Ubuntu 18.04. Tagata e iai isi tufatufaga, matou te faʻamatala foi ia te oe le sili ona tuʻuina, ae tatou amata i le faasologa.

Metotia 1: Faʻaaogaina fale teu oloa e ala i le faamafanafanaga

O loʻo mataituina e le Microsoft ana fale teu oloa aloaia. O faʻamatalaga lata mai o polokalame e vave faʻavasega i ai iina ma e mafai e tagata faʻaaogaina ona vave download i latou ma faʻapipiʻi i luga o latou komepiuta e aunoa ma ni faʻafitauli. Ae mo Visual Studio Code, e tatau ona mafaufau i filifiliga faʻaaogaina lua eseese teuga. Le fegalegaleaiga ma le muamua e pei ona taua i lalo:

  1. Tamoe "Tigaina" faasolosolo Ctrl + Alt + T pe faʻaaoga le ki talafeagai i le lisi.
  2. Tusi se poloaigasudo snap faʻapipiʻi - vasega vscodee sii mai ma faʻapipiʻi VS mai le fale teu oloa aloaia.
  3. Faʻasaʻo le igoa o le teuga e ala i lou ulufale i lau root access password.
  4. O le pikiina o faila mai le auala e ono umi se taimi, aua le tape le faamafanafana i le taimi o lenei gaioiga.
  5. I le maeʻa o faʻapipiʻi, o le ae mauaina se faʻasilasilaga ma e mafai ona vave amataina le polokalame ile ulufalevscode.
  6. O lenei e mafai ona fegalegaleai ma faʻaʻupuga ata o le faatonu o fiafia. O se aikona na faia i le lisi o loʻo faʻasolosolo ai foi le VS.

Ae ui i lea, o le faʻapipiʻi auala e ala i le faʻamaumauga o loʻo tuʻuina atu, e le talafeagai mo tagata uma, o lea matou te fautuaina oe ia e faʻamasani i se isi filifiliga e le sili atu le faigata nai lo le mea na manatu.

  1. Tatala "Tigaina" Muamua lava, faʻafou le faletusi tusi e ala i le tatainasudo apt faafouga.
  2. Le isi, oe manaʻomia le faʻapipiʻi o faʻalagolago ia faʻaaogainasudo apt faʻapipiʻi polokalama-meatotino-masani apt-felauaiga-https wget.
  3. Faamautu le faaopoopoina o faila fou i le filifilia o le filifiliga saʻo.
  4. Faʻapipiʻi le Microsoft GPG ki, o loʻo avea ai ma vaega o faʻailogaina saini faʻailoilowget -q //packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-ki faaopoopo -.
  5. Ona maeʻa lea o le faʻaopopoga i le faaofiina o le lainasudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode fale autu tumau".
  6. E naʻo le faʻapipiʻiina le polokalama lava ia e ala i le tusitusisudo apt seti tulafono.
  7. Amataina Visual Studio Code faʻaopopo i le faiga i lenei auala e faia e ala i le faʻatonuganumera.

Metotia 2: Tago lemu le afifi aloaia DEB

E le o tagata uma e faigofie i nisi taimi ona galulue i totonu o le console pe o iai foi ni faigata ma 'au. Ma le isi, o nisi taimi e leai se Initaneti ile komepiuta. I nei tulaga, o le aloaʻia DEB afifi e sau i le laveaʻiina, e mafai ona e muamua download i luga o faʻasalalauga ma faʻapipiʻi VS Code i lau PC.

Sii mai le DEB afifi Visual Studio Code

  1. Mulimuli i le sootaga i luga ma download le DEB afifi o le polokalame e te manaʻomia.
  2. Tatala le faila na faia ai le download ma faʻasolo i ai.
  3. Amata le faʻapipiʻi e "Talosaga Pule".
  4. Faamaonia lau tala ma se numera faʻamatalaga.
  5. I le iʻuga o le faʻapipiʻiina, e mafai ona e mauaina le polokalama faʻalauiloa faʻailoga i totonu o le lisi faʻaaoga le sailiga

Afai e i ai se manaʻoga e faʻaopopo faʻafouga i le polokalame o loʻo fesiligia, tatala le soʻonaʻa ma faʻatonu i lalo nei faʻatonuga tasi:

sudo apt-maua tuʻu apt-felauaiga-https
sudo apt-maua faafou
sudo apt-aumai tuʻu le numera

Mo tagata e faʻaaogaina tufatufa faʻavae i luga ole RHEL, Fedora, poʻo le CentOS, e tatau ona e faʻaaogaina laina o loʻo i lalo e faʻapipiʻi ai le polokalame.

sudo rpm --import //packages.microsoft.com/keys/microsoft.asc

sudo sh -c 'echo -e "[code] nname = Visual Studio Code nbaseurl = // package.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=//packages.microsoft.com /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '

O afifi e faafou e ala i le faamaotidnf siaki-latama o leasudo dnf faʻapipiʻi numera.

E i ai pule ma OS i luga o le openSUSE ma le SLE. Lenei suia le tulafono laititi:

sudo rpm --import //packages.microsoft.com/keys/microsoft.asc

sudo sh -c 'echo -e "[code] nname = Visual Studio Code nbaseurl = // package.microsoft.com/yumrepos/vscode enabled=1 type=rpm-md gpgcheck=1 gpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '

Faʻafouga e faia e ala i gaioiga faʻagaioiga.sudo zypper toe faʻafouma lesudo zypper faapipiiina code

O lenei ua e masani i le faʻapipiʻi metotia o Visual Studio Code i luga o Linux eseese kernel tufatufaina. A e fetaiai ma ni faʻafitauli poʻo ni faʻaletonu, ia mautinoa e faitau muamua le faʻaletonu tusitusiga, suʻesuʻe faʻamaumauga aloaʻia o le faʻagaioioiga faiga, ma tuʻua foi fesili i manatu.

Pin
Send
Share
Send