I am using Resharper which automatically recommends namespaces. I have a folder in my solution called _T.EST
, and I would like it to contribute to the namespace of all classes inside that folder. However, R#9 will see this folder as 4 separate namespaces ( _T
, E
, S
, T
).
using MyCompany._T.ESTCore.Domain.Users
seems kinda silly.
Wat I would like to have Resharper suggest is the following: MyCompany.Test.Core.Domain.Users
.
I was hoping if there was a setting for every folder in which I can specify an alternate namespace name, so that my _T.EST
folder would be picked up as Test
. Is there such a possibility?
Please keep in mind that I'm using an example here. I know I could easily change the actual folder name, or disable Resharper's suggestion feature.
Maybe I don't understand completely, sorry, but there's no ability in ReSharper to do the exact thing you're asking. Meaning, to intelligently provide namespace alternatives based on pattern changes - ie so that your _T.EST folder would be picked up as Test. Might be a nice feature.
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.