-
Notifications
You must be signed in to change notification settings - Fork 14
Editor CodeFixes
angelozerr edited this page Dec 22, 2016
·
1 revision
Since TypeScript 2.1.4, TypeScript provides the code fixes feature available with the getCodeFixes tsserver command. Each TypeScript version provides new available code fixes.
Here a list of available code fixes according the TypeScript version.

TypeScript 2.2.x is not released for the moment, you can install with npm install typescript@next and configure TypeScript Runtime

To enable those code fixes, you need to configure your tsconfig.json like this:
{
"compilerOptions": {
"noUnusedLocals": true,
"noUnusedParameters": true
}
}
See this Unused identifiers compiler code PR to see samples.
- TypeScript IDE
- New and Noteworthy