From 76dd93e700f7a7bf64167546111d512c8c57d709 Mon Sep 17 00:00:00 2001 From: zhongsp Date: Sat, 26 Dec 2015 20:10:53 +0800 Subject: [PATCH] Add new topic: TypeScript Editor Support --- README.md | 2 + SUMMARY.md | 4 +- doc/handbook/TypeScript-Editor-Support.md | 76 +++++++++++++++++++++++ preface.md | 3 + 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 doc/handbook/TypeScript-Editor-Support.md diff --git a/README.md b/README.md index cb63b46..30878de 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ TypeScript is a superset of JavaScript that compiles to clean JavaScript output. * [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.md) * [常见编译错误](./doc/handbook/Common Errors.md) * [NPM包的类型](./doc/handbook/Typings for NPM Packages.md) +* Wiki + * [支持TypeScript的编辑器](./doc/handbook/TypeScript-Editor-Support.md) **TypeScript Handbook** diff --git a/SUMMARY.md b/SUMMARY.md index 74e5a1c..e9896d1 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -25,4 +25,6 @@ * [在MSBuild里使用编译选项](./doc/handbook/Compiler Options in MSBuild.md) * [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.md) * [常见编译错误](./doc/handbook/Common Errors.html) -* [NPM包的类型](./doc/handbook/Typings for NPM Packages.md) \ No newline at end of file +* [NPM包的类型](./doc/handbook/Typings for NPM Packages.md) +* Wiki + * [支持TypeScript的编辑器](./doc/handbook/TypeScript-Editor-Support.md) \ No newline at end of file diff --git a/doc/handbook/TypeScript-Editor-Support.md b/doc/handbook/TypeScript-Editor-Support.md new file mode 100644 index 0000000..d05882f --- /dev/null +++ b/doc/handbook/TypeScript-Editor-Support.md @@ -0,0 +1,76 @@ +# 快捷列表 + +* [Atom](#atom) +* [Eclipse](#eclipse) +* [Emacs](#emacs) +* [NetBeans](#netbeans) +* [Sublime Text](#sublime-text) +* [TypeScript Builder](#typescript-builder) +* [Vim](#vim) +* [Visual Studio](#visual-studio-20132015) +* [Visual Studio Code](#visual-studio-code) +* [WebStorm](#webstorm) + +# Atom + +[Atom-TypeScript](https://atom.io/packages/atom-typescript),由TypeStrong开发的针对Atom的TypeScript语言服务。 + +# Eclipse + +[Eclipse TypeScript 插件](https://github.com/palantir/eclipse-typescript),由Palantir开发的Eclipse插件。 + +# Emacs + +[tide](https://github.com/ananthakumaran/tide) - TypeScript Interactive Development Environment for Emacs + +# NetBeans + +* [nbts](https://github.com/Everlaw/nbts) - NetBeans TypeScript editor plugin +* [Geertjan's TypeScript NetBeans Plugin](https://github.com/GeertjanWielenga/TypeScript) + +# Sublime Text + +[Sublime的TypeScript插件](https://github.com/Microsoft/TypeScript-Sublime-Plugin),可以通过[Package Control](https://packagecontrol.io/)来安装,支持Sublime Text 2和Sublime Text 3. + +# TypeScript Builder + +[TypeScript Builder](http://www.typescriptbuilder.com/),TypeScript专用IDE. + +# Vim + +### 语法高亮 + +* [leafgarland/typescript-vim](https://github.com/leafgarland/typescript-vim)提供了语法文件用来高亮显示`.ts`和`.d.ts`。 +* [HerringtonDarkholme/yats.vim](https://github.com/HerringtonDarkholme/yats.vim)提供了更多语法高亮和DOM关键字。 + +### 语言服务工具 + +有两个主要的TypeScript插件: + +* [Quramy/tsuquyomi](https://github.com/Quramy/tsuquyomi) +* [clausreinke/typescript-tools.vim](https://github.com/clausreinke/typescript-tools.vim) + +如果你想要输出时自动补全功能,你可以安装[YouCompleteMe](https://github.com/Valloric/YouCompleteMe)并添加以下代码到`.vimrc`里,以指定哪些符号能用来触发补全功能。YouCompleteMe会调用它们各自TypeScript插件来进行语义查询。 + +```vimscript +if !exists("g:ycm_semantic_triggers") + let g:ycm_semantic_triggers = {} +endif +let g:ycm_semantic_triggers['typescript'] = ['.'] +``` + +# Visual Studio 2013/2015 + +[Visual Studio](https://www.visualstudio.com/)里安装Microsoft Web Tools时就带了TypeScript。 + +TypeScript for Visual Studio 2015 在[这里](http://www.microsoft.com/en-us/download/details.aspx?id=48593) + +TypeScript for Visual Studio 2013 在[这里](https://www.microsoft.com/en-us/download/details.aspx?id=48739) + +# Visual Studio Code + +[Visual Studio Code](https://code.visualstudio.com/),是一个轻量级的跨平台编辑器,内置了对TypeScript的支持。 + +# Webstorm + +[WebStorm](https://www.jetbrains.com/webstorm/),同其它JetBrains IDEs一样,直接包含了对TypeScript的支持。 \ No newline at end of file diff --git a/preface.md b/preface.md index 05d9d47..b0374ba 100644 --- a/preface.md +++ b/preface.md @@ -47,10 +47,13 @@ TypeScript目前还在积极的开发完善之中,不断地会有新的特性 * [与其它构建工具整合](./doc/handbook/Integrating with Build Tools.html) * [常见编译错误](./doc/handbook/Common Errors.html) * [NPM包的类型](./doc/handbook/Typings for NPM Packages.html) +* Wiki + * [支持TypeScript的编辑器](./doc/handbook/TypeScript-Editor-Support.html) ## 主要修改 +* 2015-12-26 新增章节:[支持TypeScript的编辑器](./doc/handbook/TypeScript-Editor-Support.html) * 2015-12-26 新增章节:[常见编译错误](./doc/handbook/Common Errors.html) * 2015-12-19 新增章节:[JSX](./doc/handbook/JSX.html) * 2015-12-12 新增章节:[NPM包的类型](./doc/handbook/Typings for NPM Packages.html)