Moqapi e mong le e mong o hloka ho ba le kopo e sebetsang eo a tla e hlophisa le ho fetola khoutu ea mohloli. Code ea Visual Studio ke e 'ngoe ea mekhoa e molemo ka ho fetisisa e fumanehang bakeng sa mefuta ea bobeli ea tsamaiso ea Windows le Linux kernel. Ho kenngoa ha mohlophisi ea boletsoeng ho ka etsoa ka mekhoa e fapaneng, e 'ngoe le e' ngoe e tla ba e nepahetseng bakeng sa sehlopha se itseng sa basebelisi. A re emeng kajeno ts'ebetsong ena 'me re tla sebetsana le liketso tsohle kamoo ho ka khonehang.
Ka bomalimabe, tikoloho e tsoetseng pele ea ntlafatso e bitsoang Visual Studio e fumaneha feela bakeng sa li-PC tse tsamaisang Windows. Tlhokomelo e lokela ho lefelloa ke taba ea hore sehloohong sena re bontša kamoo re ka jarang mohlophisi oa mohloli Visual Studio Code - e 'ngoe ea litharollo meleng ea VS.
Ho kenya Code ea Visual Studio ho Linux
Ha e le hantle, ho na le likhetho tse 'maloa tse ngotsoeng Linner kernel. Leha ho le joalo, joale OS e se e ratoa haholo, e thehiloe Debian kapa Ubuntu. E teng lipapaling tseo re batlang ho li ele hloko, ho nka ka ho hlaka, Ubuntu 18.04. Beng ba li-distros tse ling, re boetse re u bolella kamoo u ka khonang ho kenya kateng, empa a re qale ka tatellano.
Mokhoa oa 1: Sebelisa litšiso ka har'a console
Microsoft e ikarabella ka ho hlahloba litokomane tsa eona tsa molao. Liphetolelo tsa morao-rao tsa mananeo li tsamaisoa ka potlako moo 'me basebelisi ba ka li kenya hang-hang' me ba li kenya khomphuteng ea bona ntle le mathata. Ha e le Visual Studio Code, mona o lokela ho nahana ka dikgetho ka mekhoa e 'meli e fapaneng. Tšebelisano le ea pele ke ea latelang:
- Matha "Terminal" ho feta Ctrl + Alt + T kapa u sebelise letšoao le tšoanang ho menu.
- Sehlopha sa ho ngolisa
sudo snap kenya - classic vscode
ho kenya le ho kenya VS ho tloha lefapheng la molao. - Etsa bonnete ba akhaonto ea hau ka ho kenya phasewete ea hau bakeng sa ho fihlella motso.
- Ho kopitsa lifaele ho tloha mochine ho ka 'na ha nka nako. Nakong ena, u se ke ua tima console.
- Ha u qeta ho kenya kopo, o tla fumana tsebiso mme u ka qala lenaneo ka potlako
vscode
. - Hona joale o ka kopana le sebopeho sa graphical sa mohlophisi oa thahasello. Setšoantšo se bōpiloe menu, seo VS e se e tsosolositsoeng hape.
Leha ho le joalo, hase mosebeletsi e mong le e mong ea ka sebelisang mokhoa ona oa ho kenya ka mokhoa o fanoeng, kahoo re u eletsa hore u tsebe ka mokhoa o mong o boima oo ho seng thata ho o feta.
- Bula "Terminal" 'me pele ho tsohle ho ntlafatsa lilaebrari tsa tsamaiso ka ho kena
sudo apt update
. - E latelang, o hloka ho kenya mekhoa ea ho itšetleha ka eona
software ea sudo e kenang-thepa-e tloaelehileng ea ho tsamaisa-https wget
. - Etsa bonnete ba ho kenyelletsa lifaele tse ncha ka ho khetha khetho e nepahetseng.
- Kenya konopo ea Microsoft GPG, e nang le karolo ea ho kenya li-signature ka elektronike
wget -q //packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key eketsa -
. - Ebe u tlatsa phaella ka ho kenya mola
sudo add-apt-storage "deb [arch = amd64] //packages.microsoft.com/repos/vscode e tsitsitseng e kholo"
. - E sala feela ho kenya lenaneo ka boeona, ho ngola
khoutu ea sudo e kenang
. - Running Visual Studio Code e kenyelelitsoeng tsamaisong ka tsela ena e etsoa ka taelo
khoutu
.
Mokhoa oa 2: Fumana sephutheloana sa molao sa DEB
Hase basebelisi bohle ba bang ba phutholohile ho sebetsa ka console kapa ho na le mathata a mangata ka litaelo. Ho phaella moo, ka linako tse ling ha ho na khokahanyo ea inthanete k'homphieutheng. Maemong ana, sephutheloana sa setereke sa DEB se thusa, seo u ka se jarisang mecha ea litaba pele le ho kenya VS Code ho PC ea hau.
Latala Code ea Visual Studio ea liphutheloana
- Latela kgokahanyo e ka holimo mme u kenye sephutheloana sa DEB sa lenaneo leo u le hlokang.
- Tlolela fensetere moo ho etsoang download, 'me ue tsamaise.
- Qala ho kenya kahare "Manager Manager".
- Tiisetsa akhaonto ea hau ka ho kenya phasewete.
- Qetellong ea ho kenya, u ka fumana letšoao la ho qala la lenaneo ka menu ho sebelisa ho batla.
Haeba o hloka ho eketsa lisebelisoa ho software e potsoeng, bulela console 'me u kenye litaelo tse latelang ka bobeli:
sudo apt-get kenya -pt-transport-https
sudo apt-get update
sudo apt-get install code
Ha e le bakeng sa basebedisi ba sebedisang marang-rang a thehiloeng ho RHEL, Fedora, kapa CentOS, o lokela ho sebelisa mela e ka tlase ho kenya lenaneo.
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[khoutu] nname = Code e hlahelletseng ea Studio nbaseurl = // lipakane.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=//packages.microsoft.com /keys/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
Lipapaka li nchafatsoa ka ho hlakisadnf hlahloba-update
'me joalesudo dnf kenya khoutu
.
Ho na le beng le OS ba bulehileng 'me ba SLE. Mona khoutu e fetola hanyenyane:
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[khoutu] nname = Code ea Studio e hlahelletseng nbaseurl = // lipakane.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1
gpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Puisano e entsoe ka ho sebedisa sequential activation.sudo zypper refresh
leho kenya lenaneo la sudo
Hona joale o tloaelane le mekhoa ea ho kenya Visual Studio Code ho fapanyetsanoa ho fapaneng ha kernel ea Linux. Haeba o tobane le mathata leha e le efe kapa mathata a mang, e-ba bonnete ba hore u bale pele taba ea phoso, hlahloba litokomane tsa molao tsa tsamaiso ea tsamaiso, 'me u tlohele lipotso litlatsong.