范例

VS Code Extension Samples

VS Code 扩展范例

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:我们从覆盖了许多核心概念的两个演练开始:

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

接下来的步骤

Common Questions

常见问题

Nothing yet现在还没有