Ikani Khodi Yowonera Studio pa Linux

Pin
Send
Share
Send

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:

  1. Thamanga "Pokwelera" kudzera Ctrl + Alt + T kapena gwiritsani ntchito chithunzi chofananira menyu.
  2. Lowetsani lamulosudo snap kukhazikitsa --classic vscodekutsitsa ndi kukhazikitsa VS kuchokera posungira boma.
  3. Tsimikizani kuti akauntiyo ndi yani ndikulowetsa achinsinsi achimidzi.
  4. Kutsitsa mafayilo kuchokera pachiteshi kungatenge nthawi, osazimitsa nthawi yonseyi.
  5. Mukamaliza kukhazikitsa, mudzalandira zidziwitso ndipo mutha kuyambitsa pulogalamuyo mwachangu ndikulowavscode.
  6. 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.

  1. Tsegulani "Pokwelera" Choyamba, sinthani malo owerengera mabuku mwa kulembazosintha mwachikondi.
  2. Chotsatira, muyenera kukhazikitsa zodalira zomwe mukugwiritsa ntchitosudo apt kukhazikitsa mapulogalamu-katundu-wamba apt-transport-https wget.
  3. Tsimikizirani kuwonjezera kwamafayilo atsopano posankha njira yoyenera.
  4. Ikani kiyi ya Microsoft GPG, yomwe imagwira ntchito potsegula siginecha zamagetsi kudzerawget -q //packages.microsoft.com/keys/microsoft.asc -O- | kiyi wokonda kwambiri -.
  5. Kenako malizitsani kuwonjezera polemba mzeresudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode solid".
  6. Zimangokhazikitsa pulogalamuyi yokha polembakukonda koyimba.
  7. Kuyambitsa Visitu Studio Code yowonjezeredwa ku dongosolo mwanjira iyi imachitika kudzera mwa lamulonambala.

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

  1. Tsatirani ulalo womwe uli pamwambapa ndi kutsitsa pulogalamu ya DEB yomwe mukufuna.
  2. Tsegulani chikwatu pomwe kutsitsa kunapangidwa ndikuyendetsa.
  3. Yambitsani kukhazikitsa kudzera "Oyang'anira Ntchito".
  4. Tsimikizani akaunti yanu ndi mawu achinsinsi.
  5. 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 kusinthakenakosudo 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 zypperndisudo 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.

Pin
Send
Share
Send