Connecting Tech Pros Worldwide Forums | Help | Site Map

Why does Visual Studios randomly change code?!

Steve Kershaw
Guest
 
Posts: n/a
#1: Nov 23 '05
This is the oddest problem!
When I do a copy (<ctl> C) and paste (<ctl> P) in my C# code I
sometimes find that Visual Studios has deleted the first few letters of
several consecutive lines elsewhere in the code! Code dosent compile
and I have to figure out what Visual Studios deleted.

Further, when I do a paste (<ctl> P) the focus (where the cursors
located) is moved to another location. In other words, when I paste I
expect the focus location to be to the right of the paste, but it ends
up several lines away from there!

Strange, very strange.

Thanks
Steve


Ken Cox [Microsoft MVP]
Guest
 
Posts: n/a
#2: Nov 23 '05

re: Why does Visual Studios randomly change code?!


Is it possible that the copied text has hidden carriage returns and other
control characters? I use PureText to filter out all but the text portions
when pasting.

See: http://stevemiller.net/puretext/

Ken

"Steve Kershaw" <steve_kershaw@yahoo.com> wrote in message
news:1132682390.617466.190690@f14g2000cwb.googlegr oups.com...[color=blue]
> This is the oddest problem!
> When I do a copy (<ctl> C) and paste (<ctl> P) in my C# code I
> sometimes find that Visual Studios has deleted the first few letters of
> several consecutive lines elsewhere in the code! Code dosent compile
> and I have to figure out what Visual Studios deleted.
>
> Further, when I do a paste (<ctl> P) the focus (where the cursors
> located) is moved to another location. In other words, when I paste I
> expect the focus location to be to the right of the paste, but it ends
> up several lines away from there!
>
> Strange, very strange.
>
> Thanks
> Steve
>[/color]

Closed Thread