Webstorm clearing unused imports
I'm using webstorm 2018.2. I'm working on a preact project that needs the following line "import {h} from preact".. the imported h is not used anywhere but it is required to be imported. When I do format with Cmd + Alt + L, it is clearing off this unused import... how can I prevent webstorm from clearing unused imports??
Please sign in to leave a comment.
Code | Show Reformat Code Dialog (Ctrl+Alt+Shift+L), clear Optimize Imports checkbox there