Visual Studio SDKVisual Studio SDK

Visual Studio SDK 可帮助你扩展 Visual Studio 的功能, 或将新功能集成到 Visual Studio 中。The Visual Studio SDK helps you extend Visual Studio features or integrate new features into Visual Studio. 可以将扩展分发给其他用户以及 Visual Studio Marketplace。You can distribute your extensions to other users, as well as to the Visual Studio Marketplace. 以下是一些扩展 Visual Studio 的方式:The following are some of the ways in which you can extend Visual Studio:

  • 向 IDE 添加命令、按钮、菜单和其他 UI 元素Add commands, buttons, menus, and other UI elements to the IDE

  • 添加工具窗口以实现新功能Add tool windows for new functionality

  • 扩展给定语言的 IntelliSense, 或为新的编程语言提供 IntelliSenseExtend IntelliSense for a given language, or provide IntelliSense for new programming languages

  • 使用轻型电灯泡提供帮助开发人员编写更好代码的提示和建议Use light bulbs to provide hints and suggestions that help developers write better code

  • 启用新语言支持Enable support for a new language

  • 添加自定义项目类型Add a custom project type

  • 通过 Visual Studio Marketplace 与数百万个开发人员联系Reach millions of developers via the Visual Studio Marketplace

    如果你之前从未编写过 Visual Studio 扩展, 则应在开始开发 Visual studio 扩展时找到有关这些功能的详细信息。If you've never written a Visual Studio extension before, you should find more information about these features and at Starting to develop Visual Studio extensions.

安装 Visual Studio SDKInstall the Visual Studio SDK

Visual Studio SDK 是 Visual Studio 安装程序中的一项可选功能。The Visual Studio SDK is an optional feature in Visual Studio setup. 你还可以在以后安装 VS SDK。You can also install the VS SDK later on. 有关详细信息, 请参阅安装 Visual STUDIO SDKFor more information, see Install the Visual Studio SDK.

Visual Studio 2017 SDK 的新增功能What's new in the Visual Studio 2017 SDK

Visual Studio SDK 具有一些新功能, 如 VSIX v3 格式以及重大更改, 这可能要求你更新扩展。The Visual Studio SDK has some new features such as the VSIX v3 format as well as breaking changes, which may require you to update your extension. 有关详细信息, 请参阅Visual Studio 2017 SDK 的新增功能For more information, see What's new in the Visual Studio 2017 SDK.

Visual Studio 用户体验指南Visual Studio user experience guidelines

获取有关在Visual Studio 用户体验指南中设计扩展 UI 的极佳技巧。Get great tips for designing the UI for your extension in Visual Studio user experience guidelines.

你还可以了解如何在高 DPI 设备上提供扩展, 并显示地址 DPI 问题一文。You can also learn how to make your extension look great on high DPI devices with the Address DPI issues article.

利用映像服务和目录获得极佳的图像管理, 并提供高 DPI 和主题的支持。Take advantage of the Image service and catalog for great image management and support for high DPI and theming.

查找并安装现有的 Visual Studio 扩展Find and install existing Visual Studio extensions

可以在 "工具" 菜单上的 "扩展和更新" 对话框中找到 Visual Studio 扩展。You can find Visual Studio extensions in the Extensions and Updates dialog on the Tools menu. 有关详细信息, 请参阅查找和使用 Visual Studio 扩展For more information, see Find and Use Visual Studio Extensions. 你还可以在Visual Studio Marketplace中找到扩展You can also find extensions in the Visual Studio Marketplace

Visual Studio SDK 参考Visual Studio SDK reference

可在Visual STUDIO Sdk 参考中找到 VISUAL STUDIO sdk API 参考。You can find the Visual Studio SDK API reference at Visual Studio SDK Reference.

Visual Studio SDK 示例Visual Studio SDK samples

可在 GitHub 上的Visual Studio 示例中找到 VS SDK 扩展的开源示例。You can find open source examples of VS SDK extensions on GitHub at Visual Studio Samples. 此 GitHub 存储库包含说明 Visual Studio 中各种可扩展功能的示例。This GitHub repo contains samples that illustrate various extensible features in Visual Studio.

其他 Visual Studio SDK 资源Other Visual Studio SDK resources

如果对 VSSDK 有疑问或想要分享开发扩展的经验, 可以使用Visual Studio 扩展性论坛ExtendVS Gitter ChatroomIf you have questions about the VSSDK or want to share your experiences developing extensions, you can use the Visual Studio Extensibility Forum or the ExtendVS Gitter Chatroom.

可以在VSX Arcana 博客和 Microsoft mvp 编写的大量博客中找到详细信息:You can find more information in the VSX Arcana blog and a number of blogs written by Microsoft MVPs:

请参阅See also