Razširitev za VS Code

Ustvarjanje projektov VS Code za IQ (2. generacija)

Ta članek vsebuje pregled postopka za ustvarjanje projektov VEX IQ (2. generacija) v razširitvi VEX Visual Studio Code (VS Code). Projekte v razširitvi VEX VS Code je mogoče ustvariti na dva načina – z ustvarjanjem novega projekta iz vzorčne predloge ali z uvozom obstoječega projekta VEXcode.

Opomba: Če prvič ustvarjate ali uvažate projekte v VS Code, boste morda morali na svoji napravi omogočiti dodatna dovoljenja, da bo VS Code deloval kot je predvideno.

Ustvarjanje novega projekta v VS Code

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, enhancing the educational experience for beginners in robotics.

Zaženite Visual Studio Code na računalniku. Na vrstici za dejavnosti VS Code izberite ikono VEX.

Če ikona VEX ni prikazana, preverite, ali ste namestili razširitev VEX. Za korake namestitve te razširitve si oglejte naslednji članek, ki ustreza vaši napravi.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robotics projects, aimed at enhancing educational experiences for beginners and educators.

V primarni stranski vrstici pod razdelkom »PROJECT ACTIONS« izberite gumb »New Project«.

Screenshot of the VS Code Extension for VEX IQ, showcasing the user interface and features designed to assist users in programming VEX IQ robots, including code editing, debugging tools, and project management options.

Prikazalo se bo okno »Create a New VEX Project«. Izberite ikono IQ (2. generacija), da izberete platformo projekta za projekt VEX IQ (2. generacija).

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools for programming VEX IQ robots, designed to assist educators and students in enhancing their robotics projects and coding skills.

Izberite Python ali C/C++ kot programski jezik in kliknite ustrezno ikono.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with highlighted options and menus relevant for educational robotics projects.

Nato izberite predlogo ali vzorčni projekt za ustvarjanje projekta VEX IQ (2. generacija).

  • Predlogo ali vzorčni projekt poiščite s pomikanjem navzdol ali z uporabo iskalnega polja za filtriranje seznama projektov.

  • Te predloge in vzorčni projekti vsebujejo vzorčno kodo in/ali konfiguracije robota, ki pomagajo pri začetku dela s projektom.

Ko izberete predlogo ali vzorčni projekt, kliknite »Create«.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to enhance programming for VEX IQ robotics projects, including code editing, debugging, and project management options.

Nato nastavite ime projekta, opis in lokacijo novega projekta.

V besedilno polje pod »Project Name« vnesite ime projekta.

Opomba: Ime projekta bo uporabljeno kot ime mape najvišje ravni za projekt. Prav tako bo to ime prikazano na zaslonu Brain IQ (2. generacija), ko bo projekt prenesen na robota.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with a focus on educational resources and beginner-friendly functionality.

V besedilno polje pod »Description« vnesite opis projekta. Ta korak je neobvezen.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with a focus on educational resources and beginner-friendly programming options.

Če želite projekt shraniti na drugo lokacijo namesto v privzeto mapo projekta, se v oknu pomaknite navzdol in izberite gumb »Browse«, da izberete lokacijo mape projekta na računalniku.

Opomba: Privzeta lokacija projekta je nastavljena na privzeto mapo projekta, ki jo najdete v globalnih nastavitvah razširitve.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, enhancing educational experiences and beginner robotics projects.

Ko ste vnesli ime, opis in lokacijo, kliknite gumb »Create«. Okno VS Code se bo začelo osveževati.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robotics projects, with a focus on educational resources and beginner-friendly programming options.

Projekt za VEX IQ (2. generacija) je zdaj ustvarjen v razširitvi VEX VS Code. Za ogled in razvoj kode projekta v stranski vrstici izberite »src« pod imenom projekta.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming and developing projects with the VEX IQ Robotics platform.

V stranski vrstici pod »src« izberite »main.py« (če je projekt Python projekt) ali »main.cpp« (če je projekt C/C++ projekt).

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with a focus on educational resources and beginner robotics.

Koda izbrane predloge ali vzorčnega projekta bo prikazana v področju urejevalnika, kjer lahko razvijate in urejate ustvarjeni projekt za VEX IQ (2. generacija).

Uvoz obstoječega projekta VEXcode IQ (2. generacija)

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, enhancing the educational experience for beginners in robotics.

Zaženite Visual Studio Code na računalniku. Na vrstici za dejavnosti VS Code izberite ikono VEX.

Screenshot of the VS Code extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robotics projects, including code editing and debugging options.

V primarni stranski vrstici pod razdelkom »PROJECT ACTIONS« izberite gumb »Import Project«.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming and developing projects for the VEX IQ Robotics platform.

Odprlo se bo okno »Import Project«. Izberite datoteko projekta VEXcode IQ, ki jo želite uvoziti, in kliknite gumb »Open«.

Opomba: Podprte vrste datotek projektov VEXcode za VEX IQ so:

  • .iqcpp (projekt VEXcode IQ C/C++)

  • .iqpython (projekt VEXcode IQ Python)

Opomba: Uvoziti je mogoče samo projekte, ki so konfigurirani za IQ (2. generacija). Če poskusite uvoziti projekt VEXcode IQ, ki je konfiguriran za IQ (1. generacija), bo uvoz neuspešen.

Screenshot of the VS Code extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with a focus on educational resources and beginner-friendly programming options.

Nato nastavite ime projekta, opis in lokacijo uvoženega projekta.

Privzeto bo ime projekta ostalo enako.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to enhance programming for the VEX IQ Robotics platform, aimed at educators and students.

V besedilno polje pod »Description« vnesite opis projekta. Ta korak je neobvezen.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with a focus on educational resources and beginner-friendly functionality.

Če želite projekt shraniti na drugo lokacijo namesto v privzeto mapo projekta, se v oknu pomaknite navzdol in izberite gumb »Browse«, da izberete lokacijo mape projekta na računalniku.

Opomba: Privzeta lokacija projekta je nastavljena na privzeto mapo projekta, ki jo najdete v globalnih nastavitvah razširitve.

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, enhancing educational experiences and beginner robotics projects.

Ko ste vnesli ime, opis in lokacijo, kliknite gumb »Create«. Okno VS Code se bo začelo osveževati.

Screenshot of the VS Code extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, enhancing educational experiences in robotics.

Ko je osvežitev okna VS Code dokončana, je projekt VEXcode IQ (2. generacija) uvožen v razširitev VEX VS Code. Za ogled in razvoj kode projekta v stranski vrstici izberite »src« pod imenom projekta.

Screenshot of the VS Code extension interface for VEX IQ, showcasing features and tools for programming VEX IQ robots, designed to assist educators and students in enhancing their robotics projects and coding skills.

V stranski vrstici pod »src« izberite »main.py« (če je uvoženi projekt Python projekt) ali »main.cpp« (če je uvoženi projekt C/C++ projekt).

Screenshot of the VS Code Extension interface for VEX IQ, showcasing features and tools designed to assist users in programming VEX IQ robots, with an emphasis on educational resources and beginner-friendly functionality.

Koda uvoženega projekta bo prikazana v področju urejevalnika, kjer jo je mogoče urejati.

Spletna trgovina

Potrebujete dodatne dele?

Originalni VEX deli, razširitveni seti in kompleti — vse za vaš naslednji robotski projekt na trgovina.robotech.si.

Pripravil RoboTech STEM Center
Stopite v stik

Imate
vprašanje?

Pišite nam — odgovorimo v najkrajšem možnem času.

Vaši podatki so varni in zaupni.