Txhua tus neeg zov me nyuam xav tau ib daim ntawv thov uas nws yuav sau thiab kho qhov chaws. Nrig txog kev pom Studio Code yog ib qho ntawm cov qauv zoo tshaj plaws rau ob lub qhov rais thiab Linux ntsiav operating systems. Lub installation ntawm cov said editor yuav ua tau los ntawm txoj kev sib txawv, txhua yam uas yuav opt rau ib chav kawm ntawm cov neeg siv. Cia peb txiav hnub no ntawm txoj kev ua haujlwm no thiab peb yuav kam nrog tag nrho cov kev ua kom ntau li ntau tau.
Hmoov tsis, ib lub chaw kawm hu ua Visual Studio tsuas muaj rau cov PCs khiav qhov rais. Cov ntsiab lus yuav tsum tau them rau qhov tseeb uas nyob rau hauv tsab xov xwm no peb pom tias yuav ua li cas los mus muab cov khoom los tsim qhov Visual Studio Code - ib qho ntawm cov kev daws teeb meem hauv VS kab.
Txhim kho Visual Studio Code rau Linux
Ntawm chav kawm, muaj ntau heev ob peb distributions sau rau ntawm Linux ntsiav. Txawm li cas los, OSs yog tam sim no tshwj xeeb tshaj yog nrov, raws li Debian los yog Ubuntu. Nws yog nyob rau tej lub platforms uas peb xav kom them sai sai, noj kev clarity, Ubuntu 18.04. Cov tswv ntawm lwm distros, peb kuj qhia koj zoo tshaj plaws rau nruab, tab sis cia pib nyob rau hauv kev txiav txim.
Method 1: Siv cov khoom qub los ntawm lub console
Microsoft yog nquag saib xyuas nws cov ntaub ntawv pov thawj. Qhov tseeb versions ntawm cov kev pab cuam yog sai sai uploaded muaj thiab cov neeg siv tau tam sim ntawd download lawv thiab nruab lawv on lawv lub computer tsis muaj teeb meem. Xws li rau qhov Visual Code Code, ntawm no koj yuav tsum xav txog cov kev xaiv uas siv ob hom chaw sib txawv. Kev sib raug zoo nrog thawj yog raws li nram no:
- Khiav mus "Terminal" dhau los Ctrl + Alt + T los yog siv cov lus cim hauv cov ntawv qhia zaub mov.
- Sau npe pab neeg
sudo snap nruab - classic vscode
mus download thiab nruab VS los ntawm tus nom repository. - Qhia koj tus as khauj los ntawm koj nkag mus rau koj tus password rau hauv paus nkag.
- Daus cov ntaub ntawv los ntawm cov channel tej zaum yuav siv sij hawm qee lub sij hawm.Thaum twg txoj kev no, tsis txhob qhib lub console.
- Thaum ua tiav ntawm lub installation, koj yuav tau txais ib daim ntawv ceeb toom thiab koj tuaj yeem pib qhov kev pab cuam thaum nkag mus
vscode
. - Tam sim no koj tuaj yeem nrog cov graphical interface ntawm tus editor ntawm kev txaus siab. Ib lub cim tau tsim nyob rau hauv cov ntawv qhia zaubmov, los ntawm kev uas VS tseem tau tshaj tawm.
Txawm li cas los xij, tsis yog txhua tus neeg siv tau siv txoj kev teeb tsa los ntawm qhov chaw cia khoom, yog li peb qhia koj kom paub koj tus kheej nrog rau lwm txoj kev xaiv uas tsis muaj kev nyuaj dua li qhov kev xam pom.
- Qhib "Terminal" thiab ua ntej txhua yam hloov tshiab lub tsev qiv ntawv los ntawm kev nkag mus
sudo apt hloov tshiab
. - Tom ntej no, koj yuav tsum tau nruab qhov kev pab cuam uas siv
sudo apt nruab software-properties-common apt-thauj-https wget
. - Tshawb xyuas ntxiv cov ntaub ntawv tshiab los xaiv qhov kev xaiv kom yog.
- Nruab qhov Microsoft GPG qhov tseem ceeb, uas yog lub luag haujlwm ntawm encrypting hluav taws xob kos npe los ntawm
wget -q //packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key ntxiv -
. - Tom qab ntawd ua tiav qhov ntxiv los ntawm kev xa cov kab
sudo ntxiv-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode ruaj khov lub ntsiab"
. - Nws tshua tsuas yog nruab rau qhov kev pab cuam xwb, sau ntawv
sudo apt nruab code
. - Kev siv Visual Code Code ntxiv rau qhov system ua li no los ntawm kev hais kom ua
code
.
Txoj kev 2: Download tau lub DEB-pob ua haujlwm
Tsis yog txhua tus neeg siv qee zaum kuj ua haujlwm los ntawm tus nploog los yog yuav muaj teeb meem nrog cov lus txib. Tsis tas li ntawd, qee zaum tsis muaj qhov txuas hauv internet ntawm lub computer. Hauv no, cov ntaub ntawv DEB-pob tuaj mus rau tus cawm, uas koj tuaj yeem ua ntej mus luam tawm thiab nruab VS Code rau hauv koj lub PC.
Download DEB-pob Visual Studio Code
- Ua raws li qhov txuas saum toj no thiab download tau DEB-pob ntawm qhov kev pab cuam koj xav tau.
- Qhib lub nplaub tshev uas yog qhov download tau, thiab khiav nws.
- Pib txhim kho los ntawm "Tus Thawj Saib Kev Kawm".
- Tshawb xyuas koj tus as khauj los ntawm kev nkag mus rau ib lo lus zais.
- Qhov kawg ntawm lub installation, koj tuaj yeem nrhiav lub tso npe icon ntawm qhov kev zov me nyuam los ntawm cov ntawv qhia siv cov kev tshawb nrhiav.
Yog tias koj xav tau ntxiv cov tshiab rau lub software nug, qhib lub console thiab nkag mus rau cov lus txib hauv qab no:
sudo apt-mus nruab apt-thauj-https
sudo apt-tau hloov tshiab
sudo apt-mus nruab code
Raws li rau cov neeg siv cov khoom faib raws li RHEL, Fedora, los yog CentOS, koj yuav tsum siv cov kab hauv qab no los txhim kho qhov kev pab cuam.
sudo rpm [email protected]/keys/microsoft.asc
sudo sh -c 'echo -ee "[code] nname = Nrig txog kev pom Studio Code nbaseurl = // packages.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=//packages.microsoft.com /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
Tej pob khoom raug hloov tshiab los ntawm kev qhiadnf kos-hloov tshiab
thiab tom qab ntawdsudo dnf nruab chaws
.
Muaj cov tswv thiab OS rau openSUSE thiab SLE. Ntawm no cov cai hloov me ntsis:
sudo rpm [email protected]/keys/microsoft.asc
sudo sh -c 'ncha -eo "[code] nname = Nrig txog qhov Studio Code nbaseurl = // packages.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1ngngpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Kev hloov tshiab yog tsim los ntawm kev ua kom tiav.sudo zypper refresh
thiabsudo zypper nruab code
Tam sim no koj paub txog kev txhim kho kev pom ntawm Code Code rau ntau yam kev faib tawm ntawm lub tshuab Linux. Yog tias koj ntsib teeb meem lossis quab yuam, nco ntsoov ua ntej nyeem cov ntawv ntawm qhov yuam kev, xyuas cov ntaub ntawv ntawm lub operating system, thiab tawm hauv cov lus nug hauv cov lus.