Otu esi etinye Visual Studio Code (VS Code) na Linux Mint 20

Ihe ngosi Visual Studio bụ ihe ndezi koodu-efu mere site na Microsoft maka Windows, MacOS Linux. Njirimara Koodu Visual Studio gụnyere nkwado maka nbipu, njikwa Git agbakwunyere, mmecha koodu nwere ọgụgụ isi, snippets, na nrụgharị koodu. Microsoft Visual Studio Code nwekwara nnukwu ọbá akwụkwọ ndọtị nke nwere ike ịga n'ihu na-akwado mmepe ngwanrọ raara onwe ya nye na koodu iji mee ka ụba na nyere aka ịzụlite na iji ngwanro ahụ.

Na ntuziaka na-esonụ, ị ga-amụta ka esi etinye Visual Code Editor na Linux Mint 20.

Prerequisites

Melite Sistemụ Ọrụ

Melite gi Mint Linux Sistemụ arụmọrụ iji hụ na ngwugwu niile dị adị adịla ugbu a:

sudo apt update && sudo apt upgrade -y

Nkuzi a ga-eji ya sudo iwu na na-eche na ị nwere ọnọdụ sudo. Iji nyochaa ọkwa sudo na akaụntụ gị:

sudo whoami

Ihe atụ na-egosi ọkwa sudo:

[joshua@linuxmint ~]$ sudo whoami
root

Ọ bụrụ na ịtọbeghị akaụntụ onye ọrụ sudo ma ọ ga-amasị gị, gaa na nkuzi anyị Otu esi etinye onye ọrụ na Sudoers na Linux Mint.

Iji mgbọrọgwụ akaụntụ, jiri iwu na-esonụ na paswọọdụ mgbọrọgwụ banye.

su

Wụnye ndabere maka nwụnye

Iji wụnye Visual Studio, ị ga-achọ ijide n'aka na etinyere ngwugwu ndị a. Gbaa iwu a ka ị nyochaa ma ọ bụ wụnye ngwugwu:

sudo apt install software-properties-common apt-transport-https curl -y

Advertisement


Bubata igodo GPG na ebe nchekwa ihe onyonyo a na-ahụ anya

Mbụ, ị ga-ebubata igodo GPG Microsoft iji chọpụta izi ezi ngwungwu nwụnye:

curl -sSL https://packages.microsoft.com/keys/microsoft.asc -o microsoft.asc
gpg --no-default-keyring --keyring ./ms_signing_key_temp.gpg --import ./microsoft.asc
gpg --no-default-keyring --keyring ./ms_signing_key_temp.gpg --export > ./ms_signing_key.gpg
sudo mv ms_signing_key.gpg /etc/apt/trusted.gpg.d/

Mwepụta ihe atụ ma ọ bụrụ na ọ ga nke ọma:

gpg: keybox './ms_signing_key_temp.gpg' created
gpg: /home/joshua/.gnupg/trustdb.gpg: trustdb created
gpg: key EB3E94ADBE1229CF: public key "Microsoft (Release signing) <gpgsecurity@microsoft.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1

Nke abuo, bubata Microsoft Visual Source Repository site na iji iwu na-esote ọdụ gị:

echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" | sudo tee /etc/apt/sources.list.d/vscode.list

Wụnye Visual Studio Code

Iji hazie ebe nchekwa ebe a na-edebe ihe, ị ga-emerịrị ndepụta isi mmalite njikwa ngwugwu dabara adaba iji gosipụta mgbakwunye ọhụrụ tupu nrụnye Visual Studio. Iji mee nke a, gbanye iwu a na njedebe gị:

sudo apt update

Ugbu a tinye Visual Studio site na iji iwu a:

sudo apt install code

Iji kwado nrụnye, ị nwere ike iji iwu ụdịdị a nyochaa dị ka ndị a:

code --version

Ihe atụ mmepụta:

1.60.2
7f6ab5485bbc008386c4386d08766667e155244e
x64

Advertisement


Otu esi ebido Koodu Studio Visual

Na nrụnye zuru ezu, ị nwere ike ịgba ọsọ Visual Studio n'ụzọ ole na ole dị iche iche. Nke mbụ, mgbe ịnọ na ọdụ gị, ịnwere ike iji iwu a:

code

N'aka nke ọzọ, gbaa ọsọ iwu koodu n'azụ ka ịtọhapụ ọnụ ọnụ:

code &

Agbanyeghị, nke a abụghị ihe bara uru, ị ga-eji ụzọ ndị a na desktọpụ Mint Linux gị iji meghee ụzọ ahụ: Ogwe ọrụ > Ngwa > Ngwa > Ihe ngosi Visual Studio. Ọ bụrụ na ịnweghị ike ịhụ ya, jiri ọrụ ọchụchọ dị na menu Gosi Ngwa ma ọ bụrụ na etinyere ọtụtụ ngwa.

Ihe Nlereanya:

Otu esi etinye Visual Studio Code (VS Code) na Linux Mint 20

The oge mbụ imepee Visual Studio, ị ga-ahụ windo ndị a:

Otu esi etinye Visual Studio Code (VS Code) na Linux Mint 20

Ekele, ị tinyela Microsoft Visual Studio Code na Linux Mint 20.

Otu esi ewepu (wepụ) Koodu Studio Visual

Iji wepu ngwanro Visual Studio na sistemu gị, mee iwu a na ọdụ gị:

sudo apt autoremove code --purge

Ihe atụ mmepụta:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  code*
0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade.
After this operation, 303 MB disk space will be freed.
Do you want to continue? [Y/n] 

ụdị "Y", wee pịa "Tinye igodo" ịga n'ihu na mwepụ nke Visual Studio.

Mgbe ahụ maka iwepụ kpamkpam, hichapụ ebe nchekwa na igodo GPG:

sudo rm /etc/apt/sources.list.d/vscode.*
sudo rm /etc/apt/trusted.gpg.d/ms_signing_key.gpg
sudo apt update

Advertisement


Okwu na mmechi

Ntuziaka ahụ egosila gị otu esi etinye Microsoft Visual Code maka Linux Mint 20 wee gbakwunye ebe nchekwa iji melite mmemme na-ejighi aka budata na wụnye. Visual Code bụ otu n'ime ndị ndezi IDE efu a na-ejikarị na mbara ala. Ọ dịkwa fechaa yana nhọrọ magburu onwe ya maka sistemụ gị ma ọ bụrụ na ị na-arụ ọrụ na sava kama iji ndị editọ ederede Linux ndabara dị ka. wd or nano.

Ahapụ a Comment