How to remove unused using namespaces

后端 未结 9 1792
刺人心
刺人心 2020-12-07 22:14

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.

9条回答
  •  生来不讨喜
    2020-12-07 23:13

    I know the OP specified VS 2010, but that was a while ago and this feature is built right into VS 2017. From the Menu, Tools -> Options, then find the check box below.

    After that, any time you use CTRL + K , CTRL + D they will be removed.

提交回复
热议问题