Kowane mai shirye-shirye yana buƙatar samun aikace-aikacen da ya dace wanda zai rubuta da kuma gyara lambar tushe. Lambar Kayan aikin kallo na ɗaya daga cikin mafita mafi kyawun da aka rarraba duka akan Windows da akan tsarin sarrafa kernel na Linux. Shigarwa edita da aka ambata za a iya aiwatar da ta hanyoyi daban-daban, kowane ɗayan zai zama mafi dacewa ga takamaiman ajin masu amfani. Bari muyi zurfin tunani akan wannan hanyar yau kuma muyi maganin dukkan ayyukan daki-daki.
Abin takaici, yanayin haɓakar haɓaka da ake kira Visual Studio ne kawai don PCs masu gudana Windows. Ya kamata a lura da yanzunnan cewa a cikin wannan labarin mun nuna yadda za a saukar da editan lambar lambar Kayan gani na gani - ɗayan mafita a cikin layin VS.
Sanya Code Na gani na gani a Linux
Tabbas, akwai rarrabuwa masu yawa waɗanda aka rubuta akan ƙwayoyin Linux. Koyaya, tsarin aiki akan Debian ko Ubuntu sun shahara yanzu. Ya kasance akan irin waɗannan dandamali ne muke son kula da mu, muna ɗaukar hankali Ubuntu 18.04. Masu mallakar sauran rabe-raben, za mu kuma gaya muku yadda za a kafa mafi kyau, amma bari mu fara cikin tsari.
Hanyar 1: Amfani da ajiyar ajiya ta cikin na'ura wasan bidiyo
Microsoft tana sa ido sosai ga asusun ajiyar ta. Sabbin nau'ikan shirye-shiryen an shimfiɗa su cikin sauri kuma masu amfani za su iya sauke su nan da nan kuma shigar da su a kwamfutarka ba tare da wata matsala ba. Amma ga Kayayyakin aikin hurumin kallo, yakamata kayi la'akari da zaɓuɓɓuka ta amfani da adadi biyu daban. Yin hulɗa da farkon shine kamar haka:
- Gudu "Terminal" ta hanyar Ctrl + Alt + T ko amfani da alama mai dacewa a cikin menu.
- Yi rijista da oda
sudo snap installing --classic vscode
don saukarwa da shigar da VS daga wurin ajiyar kayan aikin. - Tabbatar da asusun asusun ta hanyar shigar da kalmar wucewa ta asali.
- Sauke fayiloli daga tashar zai iya ɗaukar ɗan lokaci, kar a kashe na'ura wasan bidiyo yayin wannan aikin.
- Bayan an gama kafuwa, zaku karɓi sanarwa kuma zaku iya fara shirin nan da nan ta shiga
vscode
. - Yanzu zaku iya hulɗa tare da zane mai hoto na editan ban sha'awa. An kirkiro gunki a cikin menu wanda aka kuma ƙaddamar da VS.
Koyaya, hanyar shigarwa ta hanyar wurin ajiyar kayan da aka gabatar ba ta dace da kowane mai amfani ba, saboda haka muna ba da shawarar ku san kanku da wani zaɓi wanda ba shi da rikitarwa fiye da wanda aka yi la’akari da shi.
- Bude "Terminal" Da farko, sabunta ɗakunan karatu ta hanyar rubutu
sabar dacewa
. - Na gaba, ya kamata ku shigar da abubuwan dogaro ta amfani da su
sudo dace da shigar software-kaddarorin-gama-gari gama-kai-wget ɗin
. - Tabbatar da ƙari na sabbin fayiloli ta zaɓin madaidaicin zaɓi.
- Sanya maɓallin Microsoft GPG, wanda ke taka rawar ɓoye sa hannu na lantarki ta hanyar
wget -q //packages.microsoft.com/keys/microsoft.asc -O- | sudo-key add -
. - Bayan haka sai a kammala ƙarin ta hanyar saka layin
sudo add-apt-repository "deb [arch = amd64] //packages.microsoft.com/repos/vscode barga main"
. - Ya rage kawai don shigar da shirin ta hanyar rubuce-rubuce
sudo dace code
. - An fara Code Code Studio Kayayyakin da aka kara wa tsarin a wannan hanyar ta hanyar umarni
lambar
.
Hanyar 2: Zazzage fakitin DEB na hukuma
Ba duk masu amfani ba ne wasu lokuta dace don yin aiki ta cikin na'ura wasan bidiyo ko kuma akwai wasu matsaloli tare da .ungiyoyin. Bugu da kari, wani lokacin babu hanyar Intanet a kwamfutar. A cikin waɗannan halayen, babban kunshin DEB yana zuwa wurin ceto, wanda zaku iya gabatar da sauke ta hanyar kafofin watsa labarai kuma shigar da lambar VS akan PC ɗinku.
Zazzage kunshin DEB Kayayyakin aikin Kayayyakin Studio
- Bi hanyar haɗin da ke sama kuma zazzage kunshin DEB na shirin da kuke buƙata.
- Bude folda a inda aka yi saukar da abin kuma zazzage shi.
- Fara shigarwa ta hanyar "Manajan aikace-aikacen".
- Tabbatar da asusunka da kalmar sirri.
- A ƙarshen shigarwa, zaku iya samun alamar ƙaddamar da shirin ta cikin menu ta amfani da bincika.
Idan akwai buƙatar ƙara sabuntawa zuwa software ɗin da ake tambaya, buɗe na'ura wasan bidiyo kuma shigar da umarni masu zuwa ɗaya bayan ɗaya:
sudo dace-samu shigar-da-safarar-https
sudo dace-samu sabuntawa
sudo dace-samu lambar shigar
Ga masu amfani da ke amfani da rarrabawa kan RHEL, Fedora, ko CentOS, ya kamata ku yi amfani da layin da ke ƙasa don shigar da shirin.
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code] nname = Kayayyakin aikin hurumin kallo nbaseurl = // fakiti.microsoft.com/yumrepos/vscode
enabled=1
gpgcheck=1
gpgkey=//packages.microsoft.com /key/microsoft.asc "> /etc/yum.repos.d/vscode.repo '
An sabunta abubuwan fakiti ta hanyar tantancewaDnf dubawa
sannansudo dnf shigar da lambar
.
Akwai masu mallaka da OS akan OpenSUSE da SLE. Anan lambar canzawa kaɗan:
sudo rpm --import //packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code] nname = Kayayyakin aikin hurumin kallo nbaseurl = // fakiti.microsoft.com/yumrepos/vscode
enabled=1
type=rpm-md
gpgcheck=1
gpgkey=/ /packages.microsoft.com/keys/microsoft.asc "> /etc/zypp/repos.d/vscode.repo '
Ana sabunta abubuwa ta hanyar kunna jerin abubuwa.sudo zypper wartsake
dasudo zypper saka lambar
Yanzu kun saba da hanyoyin shigar da kundin Kayayyakin aikin Kayayyakin aikin kallo a kan rarraba Linux da yawa. Idan kun haɗu da kowane irin matsala ko ɓarna, tabbatar da fara karanta rubutun kuskure, bincika takardun aiki na tsarin aiki, da kuma barin tambayoyi a cikin bayanan.