Issue
How do I stop Netbeans (8.2) automatically "fixing" imports, on every keystroke?
For example,
deleting an import statement halfway through typing the statement [presumably because 'import x' isn't used when you are trying to type 'import x.y' ].
Removing all the imports when I type a ", /*. {, or anything that makes the rest of the program syntactically invalid [presumably because it is "not using" the imports.
It is annoying to have to 'fix-imports' on almost every keystroke, but awful when fix-imports gets it wrong (eg. a program that using java.awt.* and java.util.List, but not java.awt.List)
Solution
To be honset I don't get your question exactly. What you describe seems to be not the default behaviour of NetBeans.
From you question it seems that you're writing your imports on you own. This is not necessary. When you want to use an no imported class just use autocompletion (Strg+Space) or organize imports (Strg+Shift+i).
I never had the issues you described. You've might installed some additional plugins.
Answered By - asbachb
Answer Checked By - Willingham (JavaFixing Volunteer)