VS Code 基础以及WPILib扩展
Microsoft’s Visual Studio Code is the supported IDE for C++ and Java development in FRC. This article introduces some of the basics of using Visual Studio Code and the WPILib extension.
欢迎页面
当你第一次打开Visual Studio Code,你会看见一个“欢迎”页面。在这个界面上你可以找到一些设定VS Code的链接,你还可以找到一些指引到帮助文档和视频的链接,这些或许可以帮助你学到一些这个IDE的基础和窍门。
你可能会注意到在右上角有个小的WPILib的标识。这可以帮助你获取那些WPILib插件提供的功能(下文将介绍)。
用户界面
对你来说最重要的链接或许会是有关用户界面基础的文档。这篇文档介绍了使用用户界面(UI)的许多基础知识,并提供了使用FRC VS Code之前你所需的大多数信息。
指令面板
指令面板可用于访问或运行Visual Studio Code中的几乎所有功能(包括WPILib扩展中的功能)。可以从查看菜单或快捷键 Ctrl+Shift+P`(在macOS上为 :kbd:`Cmd+Shift+P)来访问命令面板。在指令面板的窗口中键入文本将缩小搜索范围,相关命令会动态地显示在下拉菜单中。
比如,激活“指令面板”后在搜索框中键入“ wpilib”,显示的命令范围将缩小到WPILib包含的功能。
WPILib扩展

The WPILib extension provides the FRC® specific functionality related to creating projects and project components, building, and downloading code to the roboRIO and more. You can access the WPILib commands one of two ways:
在指令面板中键入“ WPILib”
单击大多数窗口右上方的WPILib图标。这将打开预先输入“ WPILib”的指令面板
备注
It is not recommended to install the Visual Studio IntelliCode plugin with the FRC installation of VS Code as it is known to break IntelliSense in odd ways.
请参阅本章中的其他文章来了解有关特定WPILib扩展命令的更多信息。