The unused namespaces in the class file are greyed out when you are viewing the file in Visual Studio Code editor.
This way you can quickly remove unnecessary items using statements.