Faka ikhodi ye-Visual Studio ku-Linux

Pin
Send
Share
Send

Umethuli wezinhlelo ngamunye udinga ukuba nesicelo esikahle lapho azothayipha futhi ahlele khona ikhodi yomthombo. Ikhodi ye-Visual Studio ingesinye sezixazululo ezinhle kakhulu ezisatshalaliswa ku-Windows naku-Linux kernel yokusebenza izinhlelo. Ukufakwa kwesihleli esishiwo kungenziwa ngezindlela ezahlukahlukene, ngasinye kuzoba yisona esilungele kunazo zonke isigaba esithile sabasebenzisi. Masihlale kule nqubo namuhla futhi sibhekane nazo zonke izenzo ezinemininingwane ngangokunokwenzeka.

Ngeshwa, indawo yentuthuko ehlanganisiwe ebizwa nge-Visual Studio itholakala kuphela kuma-PC asebenzisa iWindows. Kufanele kuqashelwe ngaso leso sikhathi ukuthi kulesi sihloko sibonisa ukuthi ungalanda kanjani umhleli wekhodi ekhodi ye-Visual Studio Code - esinye sezixazululo emgqeni we-VS.

Ukufaka ikhodi ye-Visual Studio ku-Linux

Kuyiqiniso, kunokuningi ukusatshalaliswa okubhalwe ku-Linux kernel. Kodwa-ke, amasistimu wokusebenza asuselwa ku-Debian noma Ubuntu adumile manje. Kungalezinkundla ezinjalo esifuna ukunaka kuzo, sithatha ukucaciseleka Ubuntu 18.04. Abanikazi bokunye ukusatshalaliswa, sizokutshela nokuthi ungakufaka kanjani kangcono, kepha ake siqale ngokuhleleka.

Indlela yoku-1: Sebenzisa amakhosombe ngokusebenzisa ikhonsoli

IMicrosoft ihlola ngentshiseko imisebenzi yayo esemthethweni. Izinhlobo zakamuva zezinhlelo zibekwa ngokushesha lapho futhi abasebenzisi bangazilanda ngokushesha futhi bazifaka kwikhompyutha yabo ngaphandle kwezinkinga. Ngokuqondene neKhodi ye-Visual Studio, kufanele ucabange ngezinketho usebenzisa amakhosombe amabili ahlukile. Ukuxhumana nabokuqala kungokulandelayo:

  1. Gijima "Isiginali" ngokusebenzisa I-Ctrl + Alt + T noma usebenzise isithonjana esihambisanayo kwimenyu.
  2. Bhalisa umyalofaka i-sudo snap - --classic vscodeukulanda nokufaka i-VS kusuka endaweni esemthethweni.
  3. Qinisekisa ubunikazi be-akhawunti ngokufaka iphasiwedi yakho yokufinyelela.
  4. Ukulanda amafayela esiteshini kungathatha isikhathi, ungavali i-console ngesikhathi senqubo.
  5. Lapho usuqede ukufakwa, uzothola isaziso futhi ngokushesha ungaqala uhlelo ngokungenavscode.
  6. Manje usungaxhumana nesibonakaliso sokuqhafaza sesihleli sentshisekelo. Isithonjana senziwe kumenyu lapho i-VS nayo yethulwa khona.

Kodwa-ke, indlela yokufaka edokodweni eyethuliwe ayilungele wonke umsebenzisi, ngakho-ke sincoma ukuthi uzijwayeze nenye inketho engasiyona inkimbinkimbi kunaleyo icatshangelwe.

  1. Vula "Isiginali" Okokuqala, ukubuyekeza imitapo yolwazi ngokuthayiphaukuvuselelwa kwesudo.
  2. Okulandelayo, udinga ukufaka ukuncika usebenzisafaka i-sudo apt ukufaka isoftware-izakhiwo-ezivamile i-apt-ezokuthutha-i-https.
  3. Qinisekisa ukungezwa kwamafayela amasha ngokukhetha inketho efanele.
  4. Faka ukhiye weMicrosoft GPG, odlala indima yokufihla amasiginesha kagesiwget -q //packages.microsoft.com/keys/microsoft.asc -O- | Ukhiye we-sudo apt-key -.
  5. Bese uqeda ukufaka ngokufaka umugqasudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode solid main".
  6. Kuhlala kuphela ukufaka uhlelo uqobo ngokubhalaukufaka ikhodi yokufaka sudo.
  7. Ukuqala i-Visual Studio Code engezwe ohlelweni ngale ndlela yenziwa ngomyaloikhodi.

Indlela 2: Landa iphakethe le-DEB elisemthethweni

Akubona bonke abasebenzisi kwesinye isikhathi abalungele ukusebenza nge-console noma kungahle kube nobunzima emaqenjini. Ngaphezu kwalokho, kwesinye isikhathi akukho ukuxhumana kwe-Intanethi kwikhompyutha. Kulezi zimo, iphakethe le-DEB elisemthethweni liza ukukusindisa, ongalilanda kuqala kwimidiya bese ufaka i-VS Code kwi-PC yakho.

Landa iphakethe le-DEB Visual Studio

  1. Landela isixhumanisi esingenhla bese ulanda iphakheji le-DEB lohlelo oludingayo.
  2. Vula ifolda lapho kwenziwe khona ukulanda bese ukuqhuba.
  3. Qala ukufakwa ngokusebenzisa "Umphathi Wezicelo".
  4. Qinisekisa i-akhawunti yakho ngephasiwedi.
  5. Ekupheleni kokufakwa, ungathola isithonjana sokuqalisa sohlelo ngemenyu usebenzisa usesho.

Uma kunesidingo sokungeza izibuyekezo kwisoftware okukhulunywa ngayo, vula ikhonsoli bese ufaka imiyalo elandelayo ngalandelana:

sudo apt-get ufake apt-ezokuthutha-https
ukuvuselelwa kwesudo
sudo apt-uthole ukufaka ikhodi

Abasebenzisi abasebenzisa ukusabalalisa ngokususelwa ku-RHEL, Fedora, noma kuCentOS, kufanele usebenzise imigqa engezansi ukufaka uhlelo.

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

sudo sh -c 'echo -e "[ikhodi] nname = i-Visual Studio Code nbaseurl = // amaphakheji.microsoft.com/yumrepos/vscode /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '

Amaphakeji avuselelwa ngokucacisadnf hlola-ukubuyekezabese kuthiikhodi yokufaka ye-sudo dnf.

Kukhona abanikazi kanye ne-OS ku-openSUSE naku-SLE. Lapha ikhodi ishintsha kancane:

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

sudo sh -c 'echo -e "[ikhodi] nname = i-Visual Studio Code nbaseurl = // amaphakheji.microsoft.com/yumrepos/vscode /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '

Ukuvuselela kwenziwa ngokusebenzisa ukusebenza ngokulandelana.ukuvuselelwa kwe-sudo zypperfuthiikhodi yokufaka ye-sudo zypper

Manje usujwayele izindlela zokufaka ze-Visual Studio Code ekusakazweni okuhlukahlukene kwe-Linux kernel. Uma uhlangabezana nezinkinga noma ukungasebenzi kahle, qiniseka ukuthi uqala ufunde umbhalo wephutha, ufunde imibhalo esemthethweni yohlelo olusebenzayo, futhi ushiye nemibuzo emazwaneni.

Pin
Send
Share
Send