简体   繁体   中英

VS 2019 Show Potential Fixes (Fully Qualify vs Using)

It only offers to put the full namespace before the class. I want it to put this outside the current class' namespace, so I do not have to use the full namespace name everytime I want to use [TestClass].

I know this setting used to be available, and I assume I have turned it off by accident.

潜在修复示例

As mentioned by Amy, I want it to add a 'using' statement at the top of the class instead.

using Microsoft.Vs.Test;

Maybe it's a problem of some module of Visual Studio. I remember to have this problem but couple moments before that I saw a crash on toolbar of VS.

Just restarting the VS solved the problem to me.
Maybe you can report to VS Team.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM