Wophatikiza aliyense amafunika kukhala ndi pulogalamu yosavuta momwe amalemba ndikuwongolera gwero lake. Visual Studio Code ndi imodzi mwazankho zabwino zomwe zimagawidwa pa Windows ndi pa kachitidwe ka Linux kernel. Kukhazikitsa kwa mkonzi komwe kwatchulidwa kumatha kuchitika ndi njira zosiyanasiyana, zomwe ndizabwino kwambiri kwa gulu lina la ogwiritsa ntchito. Tiyeni tigwirizane ndi njirayi lero ndikuchita ndi machitidwe onse mwatsatanetsatane momwe tingathere.
Tsoka ilo, malo ophatikizidwa otchedwa Visual Studio amangopezeka ma PC omwe ali ndi Windows. Ziyenera kudziwika nthawi yomweyo kuti m'nkhaniyi tikuwonetsa momwe mungatsitsire chiwonetsero cha pulogalamu ya Visual Studio Code - imodzi mwazothetsera mu mzere wa VS.
Kukhazikitsa Visual Studio Code pa Linux
Zachidziwikire, pali zambiri zogawa zolembedwa pa Linux kernel. Komabe, machitidwe ogwiritsira ntchito kutengera Debian kapena Ubuntu ndiodziwika kwambiri tsopano. Ndi pamapulatifomu ngati amenewa omwe tikufuna kuti tiwawamvere, mwachidule Ubuntu 18.04. Eni ake amagawidwe ena, tikuuzaninso momwe mungakhazikitsire, koma tiyeni tiyambe mwadongosolo.
Njira 1: Kugwiritsira ntchito zolemba poyambira
Microsoft ikuyang'anira mwachangu malo ake ovomerezeka. Mitundu yaposachedwa yamapulogalamu imayikidwa mwachangu pamenepo ndipo ogwiritsa ntchito amatha kuwatsitsa mwachangu ndikuyika pa kompyuta popanda mavuto. Ponena ndi Code Code ya Visual, muyenera kuganizira zosankha pogwiritsa ntchito mitundu iwiri yosiyanasiyana. Kuyanjana ndi woyamba ndi motere:
- Thamanga "Pokwelera" kudzera Ctrl + Alt + T kapena gwiritsani ntchito chithunzi chofananira menyu.
- Lowetsani lamulo
sudo snap kukhazikitsa --classic vscode
kutsitsa ndi kukhazikitsa VS kuchokera posungira boma. - Tsimikizani kuti akauntiyo ndi yani ndikulowetsa achinsinsi achimidzi.
- Kutsitsa mafayilo kuchokera pachiteshi kungatenge nthawi, osazimitsa nthawi yonseyi.
- Mukamaliza kukhazikitsa, mudzalandira zidziwitso ndipo mutha kuyambitsa pulogalamuyo mwachangu ndikulowa
vscode
. - Tsopano mutha kulumikizana ndi mawonekedwe owonetsera kusintha kwa chidwi. Chizindikiro chidapangidwa mumenyu yomwe VS imayambitsidwanso.
Komabe, njira yokhazikitsa kudzera pazosungidwa zomwe zapezeka sizoyenera aliyense wogwiritsa ntchito, chifukwa chake tikukulimbikitsani kuti muzidziwitsa njira ina yomwe siili yovuta kuposa yomwe tafotokozayi.
- Tsegulani "Pokwelera" Choyamba, sinthani malo owerengera mabuku mwa kulemba
zosintha mwachikondi
. - Chotsatira, muyenera kukhazikitsa zodalira zomwe mukugwiritsa ntchito
sudo apt kukhazikitsa mapulogalamu-katundu-wamba apt-transport-https wget
. - Tsimikizirani kuwonjezera kwamafayilo atsopano posankha njira yoyenera.
- Ikani kiyi ya Microsoft GPG, yomwe imagwira ntchito potsegula siginecha zamagetsi kudzera
wget -q //packages.microsoft.com/keys/microsoft.asc -O- | kiyi wokonda kwambiri -
. - Kenako malizitsani kuwonjezera polemba mzere
sudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode solid"
. - Zimangokhazikitsa pulogalamuyi yokha polemba
kukonda koyimba
. - Kuyambitsa Visitu Studio Code yowonjezeredwa ku dongosolo mwanjira iyi imachitika kudzera mwa lamulo
nambala
.
Njira 2: Tsitsani pulogalamu ya DEB
Sikuti ogwiritsa ntchito nthawi zina amakhala abwino kugwiritsa ntchito choperekera kapena pamakhala zovuta zina pamagulu. Kuphatikiza apo, nthawi zina kulibe intaneti pakompyuta. Muzochitika izi, phukusi lovomerezeka la DEB limabwera kudzakulanditsani, lomwe mungathe kutsitsa pa media ndikuyika VS Code pa PC.
Tsitsani pulogalamu ya DEB phukusi lowoneka la Code
- Tsatirani ulalo womwe uli pamwambapa ndi kutsitsa pulogalamu ya DEB yomwe mukufuna.
- Tsegulani chikwatu pomwe kutsitsa kunapangidwa ndikuyendetsa.
- Yambitsani kukhazikitsa kudzera "Oyang'anira Ntchito".
- Tsimikizani akaunti yanu ndi mawu achinsinsi.
- Pamapeto pa kukhazikitsa, mutha kupeza chizindikiritso cha pulogalamuyi kudzera pa menyu pogwiritsa ntchito kusaka.
Ngati pakufunika kuwonjezera zosintha pa pulogalamuyo mukufunsani, tsegulani kontrakitala yanu ndikulowetsa malamulo otsatirawa:
sudo apt-simani kukhazikitsa zoyenera-zoyendera-https
kukonda kwambiri
sudo apt khazikitsa kukhazikitsa
Kwa ogwiritsa ntchito magawidwe opangidwa kuchokera ku RHEL, Fedora kapena CentOS, muyenera kugwiritsa ntchito mizere yotsatirayi kukhazikitsa pulogalamuyi.
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]] /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
Mapaketi amasinthidwa pofotokozadnf cheke kusintha
kenakosudo dnf kukhazikitsa
.
Pali eni ndi OS pa openSUSE ndi SLE. Nambala iyi ikusintha pang'ono:
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]] /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Kusintha kumachitika kudzera mu kuchititsa kwadongosolo.sudo zypper
ndisudo zypper khazikitsa
Tsopano mukudziwa njira yokhazikitsira Visual Studio Code pamagawo osiyanasiyana a Linux kernel. Ngati mukukumana ndi mavuto kapena zovuta zina, onetsetsani kuti mwawerenga kaye zolakwika, werengani zolemba za opaleshoni, ndipo siyani mafunso pamawuwo.