I am using visual studio 2010 and was wondering if there is a way to automatically remove all the namespaces that aren\'t being used at the the top of the page e.g.
In Visual Studio 2017, I use this very simple key combinations: CTRL+R+G to remove unused imports/namespaces
imports/namespaces
Update:
In VS for Mac:
Unfortunately, there's no default key binding for this but you can always edit your preferences.
Visual Studio -> Preferences
Visual Studio
Preferences
In my case, it is binded as ⌘+R+G