返回介绍

VS Code Extension Samples

发布于 2020-03-27 16:12:53 字数 6972 浏览 1141 评论 0 收藏 0

This is a list to make it easy to see where all the samples are...
这里是一个便于查看所有范例的列表。

We have two walkthroughs that cover many of the core concepts - start with these:
我们从覆盖了许多核心概念的两个演练开始:

  • Your First Extension - explains the core extensibility concepts with a walkthrough
  • 你的第一个扩展 - 通过一个演练讲解核心扩展概念
  • Word Count Extension - another walkthrough building on the last
  • 单词计数扩展 - 建立在上个例子基础之上的另一个演练

Sample Extensions

扩展范例

SampleDescriptionTypeIn Marketplace
Word CountAdds a word count to the status bar for Markdown files that updates on editing events. We have a walkthrough on how this was created.ExtensionY
MDToolsWork with selections and update based on common text processing e.g. ToUpper, HTMLEncode, ...ExtensionY
DecoratorShows how to decorate editor text with a border, colors, and a custom cursor as well as add an overview ruler highlight.ExtensionN
TextDocumentProviderShows how to create virtual documents and preview them.ExtensionN
TSLintLint your TypeScript files based on TSLintLanguage ServerY
Spelling and Grammar CheckerConfigurable Markdown spelling and grammar checker. Calls an external web service for checking and supports activation, add to dictionary, error mapping. Watches for config file changes in real time.ExtensionY
Mock DebuggerHelps you build and test a debugger.DebuggersY
Go Language SupportRich language support for Go Lang - IntelliSense, Debug, Peek, Rename, Syntax, ...ExtensionY
范例描述类型在商店中
Word Count在editing更新事件触发时,为MarkDown文件添加一个单词计数的状态栏. 这里是关于这个扩展是如何被创建的范例.ExtensionY
MDTools普通文本处理选择和更新是如何工作的. ToUpper, HTMLEncode, ...ExtensionY
Decorator展示如何用边框、颜色和自定义光标或者高亮的规则总览装饰一个可编辑文本。ExtensionN
TextDocumentProvider展示如何创建一个虚拟文档并预览他们。ExtensionN
TSLintTSLint实现TypeScript的语法提示。Language ServerY
Spelling and Grammar Checker可配置的MarkDown拼写和语法检查器。 调用额外的Web服务实现检测和支持激活,添加到字典,错误映射。 实时检测配置文件变化。ExtensionY
Mock Debugger帮助你创建和测试一个调试器。DebuggersY
Go Language Support富语言支持 Go Lang - 智能提示, 调试, 选取, 重命名, 语法, ...ExtensionY

Tools to Help you build an Extension

帮助你创建扩展的工具

ToolPurpose
Extension GeneratorTo help you getting started implementing an extension, we have a Yeoman generator. This creates all the initial settings you need for the development environment to work well and includes the API Typing files and any relevant modules. You can find the generator source here.
Debugging ExtensionsWe have worked hard to provide an easy way to develop, debug and locally test your extensions.
Publishing ToolOnce you have a working extension, it's time to share it in the extension Marketplace. We have a simple command line tool for this. You can find the source code here.
工具目的
Extension Generator帮助你开始实现一个扩展, 我们有 Yeoman 生成器。 创建你的开发环境所需的所有初始化配置,包括API类型文件和任意相关的模块。 你可以从这里获取生成器源码。
Debugging Extensions
Publishing Tool一旦你有了一个可以正常工作的扩展,那么是时候在扩展商店分享它了。 对此我们有一个简单的命令行工具。你可以从这里找到它的源码。

Runtime samples

运行时范例

Next Steps

接下来的步骤

  • Extension Marketplace - Learn more about VS Code's public extension Marketplace.
  • 扩展商店 - 可以学习更多VSCode公共扩展相关内容的商店。

Common Questions

常见问题

Nothing yet
现在还没有

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文