# Detect unused import in Typescript



{% code fullWidth="true" %}
```
// Detect unused import and variables in Typescript

tsconfig.json
{
  "compilerOptions": {
    "noUnusedLocals": true,
    "noUnusedParameters": true
  }
}


CTRL + SHIFT + P: 
        Open the command window and then search for Typescript: Remove Unused Imports.
        
Shift + Alt + O: 
        Delete unused import
```
{% endcode %}
