Have ReSharper keep 'using System;' when optimizing usings

前端 未结 2 2266
时光说笑
时光说笑 2021-02-19 13:20

I was wondering if there is some option to keep ReSharper from removing just the using System; directive? Perhaps this is configurable somewhere?

Also, is t

2条回答
  •  逝去的感伤
    2021-02-19 13:39

    Yes, in the options (Resharper > Options > Languages > C#), there is a Namespace Imports section that allows you to specify namespaces that should never be removed. You would put System into the prompt it gives.

提交回复
热议问题