Use TypeScript in WebStorm
TypeScript can also be developed using Visual Studio.
TypeScript official website address: (http://www.typescriptlang.org /)
1. Install WebStorm first
WebStorm (https://www.jetbrains.com/webstorm)
2. Install Node. js1. download and install Node. js node-v0.12.4-x64.msi
Baidu Network Disk download: http://pan.baidu.com/s/1jG3pm9C
For more information, see:
------------------------------------------ Split line ------------------------------------------
FTP address: ftp://ftp1.bkjia.com
Username: ftp1.bkjia.com
Password: www.bkjia.com
Use TypeScript in LinuxIDC.com/July \ WebStorm
For the download method, see
Do not change the default settings
2. Open cmd and type npm. If the following information is displayed, the installation is successful.
Otherwise, you may need to create an npm folder under C: \ Users \ [user name] \ AppData \ Roaming.
3. Install typescript
Open cmd and type npm install-g typescript
3. Enable WebStorm to set
The current version is WebStorm 10.
Step: File> Setting> Tools> File Weatchers> Add
Content
4. Solve Chinese garbled characters
Create a new TypeScript File, select a character, right-click File Encoding> switch to UTF-8
Basic TypeScript syntax
I have been using TypeScript for seven months.
WebStorm details: click here
WebStorm: click here
This article permanently updates the link address: