Dotted highlight box showing up..

I just installed the R# 7.0 trial and a weird dotted box showed up..  I can't tell what's causing it, and it's changed in size since I first saw it.highlight.png
So what is it?  Why is it there?  And if I don't like those reasons, how do I get rid of it?

7 comments
Comment actions Permalink

Hello
     This dotted box shows up if you've made a change in your code and ReSharper suggests you to perform a refactoring. For instance, if you've added a parameter to your method's signature, ReSharper will draw a dotted box around it and offer to perform the Change Signature refactoring. You can remove this highlighting by simply pressing Esc. Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

I've had it show up when copy/pasting code from one class to another.  For example, I'm looking at a box right now that's surrounding two methods, plus an empty line above the first method.  Hitting escape is not interacting with the box in any way, does my cursor have to be somewhere specific to get the "suggestion for the box" or to be able to hit escape to make it disappear?

edit: also, collapsing the lower method in the box, the box isn't updated/redrawn properly (as shown below).  I can reproduce this by collapsing the top method first, then collapsing the second method.  When the window loses focus or after some keystrokes the box gets updated correctly.
example.png

0
Comment actions Permalink

Would just like to second that this also occurs to me when I perform a paste.  The dotted line will resize as you do things but won't go away...and it's somewhat distracting.  This is definitely a bug.

ResharperIssue.png

0
Comment actions Permalink

Yeah, that's been my experience with it, too.

0
Comment actions Permalink

Wouldn't go away for me either by pressing escape.
Select All, Copy, Paste worked for me.

0
Comment actions Permalink

I'd like to +1 that this problem happened to me after copying code from one class to another class. The list Select All, then CTRL + C, and CTRL + V on the new class worked perfect to get rid of the box. Even after closing the file in the editor and re-opening it the box was still there.

UPDATE: I'd like to add an update to what I found yesterday. I found that this problem only happens if you copy and paste code into a class where the proper using namespace don't exist. If the class you are copying the code into already has the proper reference usings for the code being pasted then the dotted box goes away like it should. This information should help the test team in duplicating the issue. Another work around to the issue is go ahead and paste in the correct using namespaces then paste in the code your going to be copying in and you'll never get the left over dotted box otherwise you'll have to do the other work around previously mentioned.

0
Comment actions Permalink

Ah thanks, the only other way I'd found to get rid of the box was to close and reopen VS.

0

Please sign in to leave a comment.