Reputation: 5039
Every time I paste some piece of code from another cs file, the editor shows a dotted box around ther pasted code. I find this is annoying and don't know how to get rid of it in a neat way or better never have it shown in the first place.
For now, I am simply copying the code-segment again from the current file and re-pasting in the current file. This gets rid of the dotted box around the code segment.
Anyone knows a better way?
Upvotes: 1
Views: 545
Reputation: 24212
It's caused by ReSharper 7. It's a a feature but apparently it's a bit buggy.
Quoting a user from the thread:
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.
Upvotes: 2