Removes the unused references and optionally sorts them.
Available when the cursor is on a using (Imports) keyword assuming the source code file contains unused references.
Place the caret on a using (Imports) keyword.
The blinking cursor shows the caret's position at which the Refactoring is available.
After execution, the Refactoring sorts the namespace references alphabetically.
If you prefer sorting references by length or you want to disable automatic sorting, change these parameters in the Editor | All Languages | Namespace References options page.
In this configuration section, you can also configure the list of namespaces that should never be removed by the Optimize Namespace References Refactoring.