Why does Visual Studios randomly change code?!

Discussion in 'ASP .Net' started by Steve Kershaw, Nov 22, 2005.

  1. 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
     
    Steve Kershaw, Nov 22, 2005
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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], Nov 23, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    912
  2. Steve Kershaw

    Can't debug a WebApplication in Visual Studios

    Steve Kershaw, Mar 9, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    345
    Steve Kershaw
    Mar 9, 2006
  3. Mr. SweatyFinger
    Replies:
    2
    Views:
    1,974
    Smokey Grindel
    Dec 2, 2006
  4. Replies:
    10
    Views:
    566
  5. Steve Kershaw
    Replies:
    2
    Views:
    350
    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]
    Jul 11, 2007
Loading...

Share This Page