Wolemba pulogalamu aliyense ayenera kukhala ndi ntchito yogwiritsira ntchito yomwe adzalembere ndikulemba ndondomeko yoyenera. Mawonekedwe a Visual Studio ndi imodzi mwa njira zabwino zopezera machitidwe opangira ma Windows ndi Linux. Kuika kwa mkonzi wotchulidwayo kungatheke mwa njira zosiyanasiyana, zomwe zilizonse zidzakhala zabwino kwa gulu lina la ogwiritsa ntchito. Tiyeni tiyimire lero pa njirayi ndipo tidzatha kuchita zonse zomwe tingathe.
Mwamwayi, malo ophatikizidwa owonetserako otchedwa Visual Studio amapezeka kokha pa PC zomwe zimagwira Windows. Chenjerani ziyenera kulipidwa ndi mfundo yakuti m'nkhani ino tikuwonetsa momwe tingasamalire gwero lokonzekera Visual Studio Code - imodzi mwa njira zothetsera VS.
Kuyika Mawonekedwe a Visual Studio pa Linux
Inde, pali magawo ambiri olembedwa pa kernel ya Linux. Komabe, OSs tsopano ndi otchuka kwambiri, yochokera ku Debian kapena Ubuntu. Ndi pamapangidwe omwe tikufuna kumvetsera, kutengera momveka bwino, Ubuntu 18.04. Omwe a ma distros ena, timakuuzani momwe mungakhalire, koma tiyeni tiyambe mu dongosolo.
Njira 1: Gwiritsani ntchito repositories kupyolera mu console
Microsoft ikuyang'anitsitsa ntchito yosungirako zida zawo. Mapulogalamu atsopano amakatumizidwira pomwepo ndipo ogwiritsa ntchito akhoza kuwatsatsa nthawi yomweyo ndi kuwaika pamakompyuta awo popanda mavuto. Ponena za Visual Studio Code, apa muyenera kulingalira zosankha pogwiritsa ntchito zolemba zosiyana. Kuyanjana ndi woyamba ndiko motere:
- Thamangani "Terminal" kudutsa Ctrl + Alt + T kapena gwiritsani ntchito chithunzi chofanana pa menyu.
- Lembani gulu
sudo snap install - classic vscode
kuwombola ndi kukhazikitsa VS ku malo ovomerezeka. - Onetsetsani akaunti yanu powalowetsa mawu anu achinsinsi.
- Kuwongolera mafayilo kuchokera pa kanjira kungatenge nthawi. Panthawiyi, musatseke console.
- Pambuyo pomaliza kukonza, mudzalandira chidziwitso ndipo mutha kuyamba pulogalamu yomweyo
vscode
. - Tsopano mungathe kuyanjana ndi zithunzi zojambulazo za mkonzi wa chidwi. Chithunzi chidapangidwira m'menyu, yomwe VS imayambanso.
Komabe, si ogwiritsa ntchito onse omwe angagwiritse ntchito njira yowonjezeramo kudzera mu malo osungirako, kotero tikukulangizani kuti mudzidziwe njira ina yomwe simukulimbana nayo kuposa yomwe ikuganiziridwa.
- Tsegulani "Terminal" ndipo choyamba ndikusintha ma library makonzedwe polowera
sudo apt update
. - Pambuyo pake, muyenera kukhazikitsa zida zogwiritsa ntchito
pulogalamu ya pulogalamu yowonjezera-katundu-wamba -wotengera-https wget
. - Onetsetsani Kuwonjezera kwa mafayilo atsopano mwa kusankha njira yoyenera.
- Ikani makina a Microsoft GPG, omwe amachititsa kuti azilemba zilembo zamagetsi kudzera
chotsani -q //packages.microsoft.com/keys/microsoft.asc -O- | yowonjezera-key key add -
. - Kenaka malizitsani kuwonjezera poika mzere
sudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode chachikulu chokhazikika"
. - Zimangokhala kukhazikitsa pulogalamu yokha, kulemba
kondomu yowonjezera
. - Kuthamanga Visual Studio Code yowonjezera ku dongosolo mwanjirayi ikuchitika kudzera mwa lamulo
code
.
Njira 2: Koperani phukusi la DEB
Osati ogwiritsira ntchito nthawi zina amamasuka kugwira ntchito kudutsa kapena kumakhala zovuta ndi malamulo. Komanso, nthawi zina palibe intaneti pa kompyuta. Pazochitikazi, phukusi la DEB lopatsirana limapulumutsa, limene mungakonzekere ku ma TV ndikuyika VS Code pa PC yanu.
Koperani PUP-Phukusi la Visual Studio Code
- Tsatirani chiyanjano chapamwamba ndikutsitsa pulogalamu ya DEB ya pulogalamu yomwe mukufunikira.
- Tsegulani foda kumene kukatulutsidwa, ndikuyendetsa.
- Yambani kukhazikitsa kudzera "Woyang'anira Ntchito".
- Tsimikizirani akaunti yanu mwa kulowa mawu achinsinsi.
- Kumapeto kwa kukhazikitsa, mukhoza kupeza chithunzi cha pulogalamuyo kudzera mu menyu pogwiritsa ntchito kufufuza.
Ngati mukufuna kuwonjezera mazokonzedwe a pulogalamuyi, yambitsani console ndikulowa malamulo awa:
sudo apt-get kukhazikitsa njira zoyendetsa-https
sudo apt-get update
sudo apt-get kukhazikitsa code
Ponena za ogwiritsa ntchito zogawa kuchokera kwa RHEL, Fedora, kapena CentOS, muyenera kugwiritsa ntchito mizere ili m'munsiyi kuti muyike pulogalamuyo.
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code] nname = Mawonekedwe Ambendera Yakale nbaseurl = // phukusi.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=//packages.microsoft.com /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
Maphukusi amasinthidwa mwachindunjidnf check-update
ndiyenosudo dnf kukhazikitsa code
.
Pali eni ndi OS omwe amatseguka ndipo SLE. Pano chikhochi chimasintha pang'ono:
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code] nname = Mawonekedwe Ambendera Yathu nbaseurl = // phukusi.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1
gpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Kukonzekera kumapangidwa kupyolera mukuyambitsa kusinthika.sudo zypper refresh
ndipulogalamu yowonjezera yowonjezera
Tsopano mukudziƔa njira zowonjezera Visual Studio Code pamagawo osiyanasiyana a kernel ya Linux. Ngati mukukumana ndi mavuto kapena zovuta zina, onetsetsani kuti mwayambe kuwerenga zolakwikazo, pendani zolemba zomwe zilipo kale, ndikusiya mafunso mu ndemanga.