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

扩展范例

Sample Description Type In Marketplace
Word Count Adds a word count to the status bar for Markdown files that updates on editing events. We have a walkthrough on how this was created. Extension Y
MDTools Work with selections and update based on common text processing e.g. ToUpper, HTMLEncode, … Extension Y
Decorator Shows how to decorate editor text with a border, colors, and a custom cursor as well as add an overview ruler highlight. Extension N
TextDocumentProvider Shows how to create virtual documents and preview them. Extension N
TSLint Lint your TypeScript files based on TSLint Language Server Y
Spelling and Grammar Checker Configurable 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. Extension Y
Mock Debugger Helps you build and test a debugger. Debuggers Y
Go Language Support Rich language support for Go Lang - IntelliSense, Debug, Peek, Rename, Syntax, … Extension Y
范例 描述 类型 在商店中
Word Count 在editing更新事件触发时,为MarkDown文件添加一个单词计数的状态栏. 这里是关于这个扩展是如何被创建的范例. Extension Y
MDTools 普通文本处理选择和更新是如何工作的. ToUpper, HTMLEncode, … Extension Y
Decorator 展示如何用边框、颜色和自定义光标或者高亮的规则总览装饰一个可编辑文本。 Extension N
TextDocumentProvider 展示如何创建一个虚拟文档并预览他们。 Extension N
TSLint TSLint实现TypeScript的语法提示。 Language Server Y
Spelling and Grammar Checker 可配置的MarkDown拼写和语法检查器。 调用额外的Web服务实现检测和支持激活,添加到字典,错误映射。 实时检测配置文件变化。 Extension Y
Mock Debugger 帮助你创建和测试一个调试器。 Debuggers Y
Go Language Support 富语言支持 Go Lang - 智能提示, 调试, 选取, 重命名, 语法, … Extension Y

Tools to Help you build an Extension

帮助你创建扩展的工具

Tool Purpose
Extension Generator To 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 Extensions We have worked hard to provide an easy way to develop, debug and locally test your extensions.
Publishing Tool Once 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
现在还没有