Skip to content

gocpplua/ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my ts learning record

1. TypeScript in Visual Studio Code

ubuntu 16.04 下面安装 TypeScript compiler

2. Language-specific editor settings

添加自动保存:To customize your editor by language, run the global command Preferences: Configure Language Specific Settings (command ID: workbench.action.configureLanguageBasedSettings) from the Command Palette (Ctrl+Shift+P) which opens the language picker. Select the language you want, which then opens your user settings.json with the language entry where you can add applicable settings.

// On save, run both fixAll and organizeImports source actions
"editor.codeActionsOnSave": {
    "source.fixAll": true,
    "source.organizeImports": true,
}

3. Debugging

传送门

4. es6使用

通过命令: tsc --init 生成tsconfig.json,然后修改:

"target": "es5"   ->  "target": "es6", 

About

my ts learning record

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published