Remove Redundant Qualifier

I have source code files (written by others, inherited) that have literally
HUNDREDS of redundant and unnecessary "this." qualifiers (as in, they used
it every time they referenced a property of the current class). I
personally hate that style of code, so I'd be only too glad to eliminate all
those silly redundant "this." qualifiers, but clicking on each one, one at a
time, and then clicking on the lightbulb and selecting "remove redundant
qualifier" is really, really tedious.

Is there, or can there be, some way of doing a global fix to a specified
file, similar to the way we can optimize usings and fix up all the qualified
names all at once?


4 comments
Comment actions Permalink

This is alredy planned and will be done in one of the builds

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dc94kf$1vc$1@is.intellij.net...
>I have source code files (written by others, inherited) that have literally
>HUNDREDS of redundant and unnecessary "this." qualifiers (as in, they used
>it every time they referenced a property of the current class). I
>personally hate that style of code, so I'd be only too glad to eliminate
>all those silly redundant "this." qualifiers, but clicking on each one, one
>at a time, and then clicking on the lightbulb and selecting "remove
>redundant qualifier" is really, really tedious.
>

Is there, or can there be, some way of doing a global fix to a specified
file, similar to the way we can optimize usings and fix up all the
qualified names all at once?



0
Comment actions Permalink

http://www.intellij.net/tracker/resharper/viewSCR?publicId=5367


"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dca47a$e4q$1@is.intellij.net...

This is alredy planned and will be done in one of the builds

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dc94kf$1vc$1@is.intellij.net...

>>I have source code files (written by others, inherited) that have
>>literally HUNDREDS of redundant and unnecessary "this." qualifiers (as in,
>>they used it every time they referenced a property of the current class).
>>I personally hate that style of code, so I'd be only too glad to eliminate
>>all those silly redundant "this." qualifiers, but clicking on each one,
>>one at a time, and then clicking on the lightbulb and selecting "remove
>>redundant qualifier" is really, really tedious.
>>
>> Is there, or can there be, some way of doing a global fix to a specified
>> file, similar to the way we can optimize usings and fix up all the
>> qualified names all at once?
>>
>



0
Comment actions Permalink

Excellent! Thanks!

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dca47a$e4q$1@is.intellij.net...

This is alredy planned and will be done in one of the builds

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dc94kf$1vc$1@is.intellij.net...

>>I have source code files (written by others, inherited) that have
>>literally HUNDREDS of redundant and unnecessary "this." qualifiers (as in,
>>they used it every time they referenced a property of the current class).
>>I personally hate that style of code, so I'd be only too glad to eliminate
>>all those silly redundant "this." qualifiers, but clicking on each one,
>>one at a time, and then clicking on the lightbulb and selecting "remove
>>redundant qualifier" is really, really tedious.
>>
>> Is there, or can there be, some way of doing a global fix to a specified
>> file, similar to the way we can optimize usings and fix up all the
>> qualified names all at once?
>>
>



0
Comment actions Permalink

Done in build 204

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Amir Kolsky" <amir@xpandsoft.com> wrote in message
news:dca7uj$v3a$1@is.intellij.net...

http://www.intellij.net/tracker/resharper/viewSCR?publicId=5367

>
>

"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:dca47a$e4q$1@is.intellij.net...

>> This is alredy planned and will be done in one of the builds
>>
>> --
>> Eugene Pasynkov
>> Developer
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>> "Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
>> news:dc94kf$1vc$1@is.intellij.net...
>>>I have source code files (written by others, inherited) that have
>>>literally HUNDREDS of redundant and unnecessary "this." qualifiers (as
>>>in, they used it every time they referenced a property of the current
>>>class). I personally hate that style of code, so I'd be only too glad to
>>>eliminate all those silly redundant "this." qualifiers, but clicking on
>>>each one, one at a time, and then clicking on the lightbulb and selecting
>>>"remove redundant qualifier" is really, really tedious.
>>>
>>> Is there, or can there be, some way of doing a global fix to a specified
>>> file, similar to the way we can optimize usings and fix up all the
>>> qualified names all at once?
>>>
>>
>>
>



0

Please sign in to leave a comment.