InitializeComponent method warnings

Hi

Your highlight waring method is very usefull except for the cases that inside initializeComponent method are warings then its not usefull at all cuase daemon shows all warnings and i cannot do anything to fix them, the designer will rewrite them.

is there a way to exclude warings in that method?

4 comments
Comment actions Permalink

ReSharper doesn't highlight warnings inside regions with some predefined names.
Here they are:
a.. "Windows Form Designer generated code",
b.. "Component Designer generated code",
c.. "Designer generated code"
If you do not remove the region directives, and the name match, then the warnings will not be highlighted


--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"A.Bekiaris" <no_mail@jetbrains.com> wrote in message news:19981823.1122983949048.JavaMail.javamailuser@localhost...

Hi

Your highlight waring method is very usefull except for the cases that inside initializeComponent method are warings then its not usefull at all cuase daemon shows all warnings and i cannot do anything to fix them, the designer will rewrite them.

is there a way to exclude warings in that method?

0
Comment actions Permalink

I think the best way would be not to highlight usages in any region having
"generated code" substring in the name. Users may define their own custom
regions without highlighting. Forms designer keeps prefixes for generated
fields as well, though they are outside standard "generated code" region,
and now there is no means to prevent R#R from highlighting them.

ReSharper doesn't highlight warnings inside regions with some
predefined
names.
Here they are:
a.. "Windows Form Designer generated code",
b.. "Component Designer generated code",
c.. "Designer generated code"
If you do not remove the region directives, and the name match, then
the
warnings will not be highlighted

Thanks,
Andrey Simanovsky


0
Comment actions Permalink

ok but what about the regions for asp.net projects-->
"Web Form Designer generated code" does resharper support asp.net?

0
Comment actions Permalink

Thank you for the feedback.
Fixed in 204

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"A.Bekiaris" <no_mail@jetbrains.com> wrote in message
news:3006910.1123060459727.JavaMail.itn@is.intellij.net...

ok but what about the regions for asp.net projects-->
"Web Form Designer generated code" does resharper support asp.net?



0

Please sign in to leave a comment.