Umlimi ngamunye kudingeka abe nesicelo esilungile lapho azofaka khona futhi ahlele ikhodi yomthombo. I-Visual Studio Code ingenye yezixazululo ezinhle kakhulu ezitholakalayo kokubili izinhlelo zokusebenza ze-Windows ne-Linux kernel. Ukufakwa komhleli okukhulunywe ngaye kungenziwa ngezindlela ezahlukene, okuzokwenziwa kuzo zonke izigaba kubasebenzisi abathile. Masiyeke namuhla kule nqubo futhi sizobhekana nazo zonke izenzo ngangokunokwenzeka.
Ngeshwa, indawo ehlanganisiwe yentuthuko ebizwa nge-Visual Studio itholakala kuphela kuma-PC asebenzisa iWindows. Ukunakwa kufanele kubhalelwe ukuthi kulesi sihloko sibonisa ukuthi singayisebenzisa kanjani umhleli womthombo we-Visual Studio Code - esinye sezixazululo kulayini lwe-VS.
Ukufaka i-Visual Studio Code ku-Linux
Yiqiniso, kunezinsalela ezimbalwa ezibhalwe kwi-kernel ye-Linux. Noma kunjalo, i-OS manje idumile kakhulu, isekelwe ku-Debian noma Ubuntu. Kuzoziqephu ezinjalo esifuna ukuzinaka, ukuthatha ukucaca, Ubuntu 18.04. Abanikazi bezinye i-distros, sikutshela nokuthi kungcono kanjani ukufaka, kodwa ake siqale ngokuhlelekile.
Indlela 1: Sebenzisa amakhompiyutha ngokusebenzisa i-console
I-Microsoft ihlolisisa ngokucophelela izindawo zokugcina ezisemthethweni. Izinguqulo zakamuva zezinhlelo zilayishwa ngokushesha lapho futhi abasebenzisi bangakwazi ukuzilanda ngokushesha futhi bazifake kukhompyutha yabo ngaphandle kwezinkinga. Ngokuqondene neViewual Code Code, lapha kufanele ucabangele izinketho usebenzisa ama-repositories amabili ahlukene. Ukuxhumana nomuntu wokuqala kunjengokulandelayo:
- Qalisa "Isikhumbuzo" ngokusebenzisa I-Ctrl + Alt + T noma sebenzisa isithonjana esifanayo kwimenyu.
- Bhalisa iqembu
I-sudo snap ifaka - i-classic vscode
ukulanda nokufaka i-VS kusuka ehhovisi elisemthethweni. - Qinisekisa i-akhawunti yakho ngokufaka iphasiwedi yakho yokufinyelela kwezimpande.
- Ukulanda amafayela kusuka kusiteshi kungathatha isikhathi. Phakathi nale nqubo, ungacimi i-console.
- Uma usuqedile ukufakwa, uzothola isaziso futhi ungaqala ngokushesha uhlelo ngokufaka
i-vscode
. - Manje ungakwazi ukuxhumana ne-graphical interface yomhleli wesithakazelo. Isithonjana sidalwe kwimenyu, lapho i-VS iphinde iqaliswe khona.
Kodwa-ke, akuwona wonke umsebenzisi ongasebenzisa indlela yokufaka ngendlunkulu eyinikeziwe, ngakho-ke sineluleka ukuthi uzijwayeze ngenye indlela engeyona eyinkimbinkimbi kunalokho okucatshangwayo.
- Vula "Isikhumbuzo" futhi kuqala kokubuyekeza izilabhu zamasistimu ngokungena
sudo update update
. - Okulandelayo, udinga ukufaka ukuxhomeka kokusebenzisa usebenzisa
isofthiwe yokufaka i-sudo efanele-izakhiwo-ezivamile zokuthutha-https wget
. - Qinisekisa ukufakwa kwamafayela amasha ngokukhetha inketho efanele.
- Faka ukhiye we-Microsoft GPG, odlala indima yokubethela amasignesha kagesi ngokusebenzisa
wget -q //packages.microsoft.com/keys/microsoft.asc -O- | engeza ukhiye we-sout-key -
. - Bese uqedela ukufaka ngokufaka umugqa
i-sudo engeza-apt-repository "i-deb [arch = amd64] //packages.microsoft.com/repos/vscode main esiphezulu"
. - Ihlala kuphela ukufaka uhlelo ngokwayo, ukubhala
ikhodi yokufaka ye-sudo
. - Ukuqalisa i-Visual Studio Code eyongezwe ohlelweni ngale ndlela kwenziwa ngomyalo
ikhodi
.
Indlela 2: Landa iphakethe elisemthethweni le-DEB
Akubona bonke abasebenzisi ngezinye izikhathi abakhululekile ukusebenzisana ne-console noma kungase kube khona ubunzima nemilayezo. Ngaphezu kwalokho, ngezinye izikhathi akukho uxhumano lwe-intanethi kukhompyutha. Kulezi zimo, iphakethe le-DEB elisemthethweni liza ekusizeni, ongakulanda ngaphambilini kumaphephandaba bese ufaka i-VS Code ku-PC yakho.
Landa i-DEB-iphakheji ye-Visual Studio Code
- Landela isixhumanisi ngenhla futhi ulandele iphakheji ye-DEB yohlelo oludingayo.
- Vula ifolda lapho ukulanda kwenziwa khona, bese ugijima.
- Qala ukufakwa ngokusebenzisa "Umphathi Wezinhlelo zokusebenza".
- Qinisekisa i-akhawunti yakho ngokufaka iphasiwedi.
- Ekupheleni kokufakwa, ungathola isithonjana sokuqaliswa kohlelo ngokusebenzisa imenyu usebenzisa usesho.
Uma udinga ukwengeza izibuyekezo kwisofthiwe embuzweni, vula i-console bese ufaka imiyalo elandelayo ngokulandelayo:
sudo uthole-get install -pt-transport-https
sudo apt-get update
sudo apt-get ikhodi yokufaka
Ngokuqondene nabasebenzisi abasebenzisa ukwabiwa okusekelwe ku-RHEL, Fedora, noma i-CentOS, kufanele usebenzise imigqa engezansi ukuze ufake uhlelo.
sudo rpm - faka //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[ikhodi] nname = I-Visual Studio Code nbaseurl = // amaphakheji.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=//packages.microsoft.com /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
Amaphakheji abuyekeziwe ngokucacisadnf hlola ukubuyekeza
besesudo dnf ikhodi yokufaka
.
Kukhona abanikazi kanye ne-OS evuliweSUSE ne-SLE. Lapha ikhodi ishintsha kancane:
sudo rpm - faka //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[ikhodi] nname = I-Visual Studio Code nbaseurl = // amaphakheji.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1
gpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Ukuvuselelwa kwenziwa ngokusebenzisa ukusebenza okulandelanayo.sudo zypper kabusha
futhiikhodi yokufaka i-sudo zypper
Manje uyazazi izindlela zokufaka i-Visual Studio Code ekuhambisweni okuhlukahlukene kwe-kernel ye-Linux. Uma uhlangabezana nezinkinga noma izinkinga, qiniseka ukuthi uqala ukufunda umbhalo wephutha, ubuyekeze imibhalo esemthethweni yesistimu yokusebenza, bese ushiya imibuzo emazwana.