פקודות WPILib ב-Visual Studio Code

מסמך זה מכיל רשימה מלאה של הפקודות המסופקות על ידי הרחבת WPILib עבור VS Code ומה הן עושות.

כדי לגשת לפקודות אלה, לחצו Ctrl+Shift+P כדי לפתוח את לוח הפקודות, ואז התחילו להקליד את שם הפקודה כפי שמוצג כאן כדי לסנן את רשימת הפקודות. לחצו על שם הפקודה כדי לבצע אותה.

  • WPILib: Build Robot Code - בניית הפרויקט הפתוח כעת באמצעות GradleRIO

  • WPILib: Create a new project - יצירת פרויקט רובוט חדש

  • WPILib C++: Refresh C++ Intellisense - Force an update to the C++ Intellisense configuration.

  • WPILib C++: Select current C++ toolchain - Select the toolchain to use for Intellisense (i.e. desktop vs. roboRIO vs…). This is the same as clicking the current mode in the bottom right status bar.

  • WPILib C++ Select Enabled C++ Intellisense Binary Types - Switch Intellisense between static, shared, and executable

  • WPILib: Cancel currently running tasks - ביטול כל המשימות שהרחבת WPILib מריצה כעת.

  • WPILib: Change Auto Save On Deploy Setting - שינוי אם הקבצים יישמרו אוטומטית בעת ביצוע Deploy. ברירת המחדל היא מופעל.

  • WPILib: Change Auto Start RioLog on Deploy Setting - Change whether RioLog starts automatically on deploy. This defaults to Enabled.

  • WPILib: Change Desktop Support Enabled Setting - Change whether building robot code on Desktop is enabled. Enable this for test and simulation purposes. This defaults to Desktop Support off.

  • WPILib: Change Language Setting - שינוי האם הפרויקט הפתוח כעת הוא C++ או Java.

  • WPILib: Change Run Commands Except Deploy/Debug in Offline Mode Setting - Change whether GradleRIO is running in Online Mode for commands other then deploy/debug (will attempt to automatically pull dependencies from online). Defaults to enabled (online mode).

  • WPILib: Change Run Deploy/Debug Command in Offline Mode Setting - Change whether GradleRIO is running in Online Mode for deploy/debug (will attempt to automatically pull dependencies from online). Defaults to disabled (offline mode).

  • WPILib: Change Select Default Simulate Extension Setting - Change whether simulation extensions are enabled by default (all simulation extensions defined in build.gradle will be enabled)

  • WPILib: Change Skip Tests On Deploy Setting - Change whether to skip tests on deploy. Defaults to disabled (tests are run on deploy)

  • WPILib: Change Stop Simulation on Entry Setting - Change whether to stop robot code on entry when running simulation. Defaults to disabled (don’t stop on entry).

  • WPILib: Check for WPILib Updates - חיפוש עדכונים עבור הרחבת WPILib.

  • WPILib: Debug Robot Code - Build and deploy robot code to roboRIO in debug mode and start debugging

  • WPILib: Deploy Robot Code - בנייה וביצוע Deploy הקוד ל-roboRIO.

  • WPILib: Import a WPILib 2020 Gradle Project - Open a wizard to help you create a new project from a existing VS Code Gradle project from 2020. Further documentation is at importing gradle project

  • WPILib: Import a WPILib Eclipse Project - Open a wizard to help you create a new VS Code project from an existing WPILib Eclipse project from a previous season. Further documentation is at importing eclipse project

  • WPILib: Install tools from GradleRIO - Install the WPILib Java tools (e.g. SmartDashboard, Shuffleboard, etc.). Note that this is done by default by the offline installer

  • WPILib: Manage Vendor Libraries - התקנה/עדכון של ספריות צד שלישי

  • WPILib: Open API Documentation - Opens either the WPILib Javadocs or C++ Doxygen documentation

  • WPILib: Open Project Information - Opens a widget with project information (Project version, extension version, etc.)

  • WPILib: Open WPILib Command Palette - This command is used to open a WPILib Command Palette (equivalent of hitting Ctrl+Shift+P and typing WPILib)

  • WPILib: Open WPILib Help - This opens a simple page which links to the WPILib documentation (this site)

  • WPILib: Reset Ask for WPILib Updates Flag - This will clear the flag on the current project, allowing you to re-prompt to update a project to the latest WPILib version if you previously chose to not update.

  • WPILib: Run a command in Gradle - This lets you run an arbitrary command in the GradleRIO command environment

  • WPILib: Set Team Number - שינוי מספר הקבוצה המשויך לפרויקט. נחוץ רק עבור שינוי את מספר הקבוצה מזה שצוין בתחילה בעת יצירת הפרויקט.

  • WPILib: Set VS Code Java Home to FRC Home - Set the VS Code Java Home variable to point to the Java Home discovered by the FRC extension. This is needed if not using the offline installer to make sure the intellisense settings are in sync with the WPILib build settings.

  • WPILib: Show Log Folder - Shows the folder where the WPILib extension stores internal logs. This may be useful when debugging/reporting an extension issue to the WPILib developers

  • WPILib: Simulate Robot Code on Desktop - This builds the current robot code project on your PC and starts it running in simulation. This requires Desktop Support to be set to Enabled.

  • WPILib: Start RioLog - This starts the RioLog display used to view console output from a robot program

  • WPILib: Start Tool - This allows you to launch WPILib tools (e.g. SmartDashboard, Shuffleboard, etc.) from inside VS Code

  • WPILib: Test Robot Code - This builds the current robot code project and runs any created tests. This requires Desktop Support to be set to Enabled.