码迷,mamicode.com
首页 > 其他好文 > 详细

VS Code Angular Snippets

时间:2016-11-17 19:42:22      阅读:241      评论:0      收藏:0      [点我收藏+]

标签:component   rect   sni   actor   java   let   create   install   publish   

Visual Studio Code Beta is available and it supports extensions! I published my first 2 extensions for creating Angular 1 and 2 snippets. You can grab these from the marketplace or right from VS Code.

技术分享

You can browse the VS Code Extension Gallery both from within VS Code and through the VS Code Marketplace.

技术分享

###Installing

Angular 2 TypeScript Snippets for VS Code

This extension for Visual Studio Code adds snippets for Angular 2 for TypeScript.

Installation
  1. Install Visual Studio Code 0.10.1 or higher
  2. Launch Code
  3. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Select Install Extension
  5. Choose the extension
  6. Reload Visual Studio Code

技术分享

Usage

Type part of a snippet, press enter, and the snippet unfolds.

ng2component  // creates an Angular 2 component
ng2service    // creates an Angular 2 service

Alternatively, press Ctrl+Space (Windows, Linux) or Cmd+Space (OSX) to activate snippets from within the editor.

Angular 1 TypeScript and JavaScript Snippets for VS Code

This extension for Visual Studio Code adds snippets for Angular 1 for TypeScript and JavaScript.

Installation
  1. Install Visual Studio Code 0.10.1 or higher
  2. Launch Code
  3. From the command palette Ctrl-Shift-P (Windows, Linux) or Cmd-Shift-P (OSX)
  4. Select Install Extension
  5. Choose the extension
  6. Reload Visual Studio Code

技术分享

Usage

Type part of a snippet, press enter, and the snippet unfolds.

ng1controller // creates an Angular controller
ng1directive  // creates an Angular directive
ng1factory    // creates an Angular factory
ng1module     // creates an Angular module
ng1service    // creates an Angular service

Alternatively, press Ctrl+Space (Windows, Linux) or Cmd+Space (OSX) to activate snippets from within the editor.

技术分享

VS Code Angular Snippets

标签:component   rect   sni   actor   java   let   create   install   publish   

原文地址:http://www.cnblogs.com/cjxhd/p/5976743.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!