Setup Sublime Text 3 for Angular 2
Here we share our Sublime Text setup for working with Angular 2.
TypeScript Package
Install TypeScript
package:
Ctrl+Shift+P
(open command palette)- Type
install package
then pressEnter
- Search for
"TypeScript"
then pressEnter
to install
Angular2 HTML Package
Install Angular2 HTML Syntax
package:
Ctrl+Shift+P
(open command palette)- Type
install package
then pressEnter
- Search for
"Angular2 HTML Syntax"
then pressEnter
to install
Automatically highlight .component.html
files with Angular2 HTML Syntax:
- Open a
.component.html
file - Choose View > Syntax > Angular2 HTML
-
Go to Preferences > Settings – Syntax Specific and add the following line (within the file on the right):
"extensions":["component.html"]
- Restart Sublime Text
-
xie
-
Michael McCoy
-
Stephen VoPava
-