You can disable TypeScript auto-imports completely, by clearing Add TypeScript imports automatically
checkbox in Settings | Editor | General | Auto Import
Settings | Editor | General | Auto Import
Settings | Editor | General | Auto Import
- import suggestions will be available on explicit Alt+Enter
on the reference. If you'd like to disable import suggestions for particular statement only, you can add // noinspection TypeScriptUnresolvedVariable
comment above it
These suggestions are came from Settings -> Editor -> Inspections -> TypeScript
. Uncheck those suggestions if you don't need it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.