Is there a way to stop VS.NET from changing my IDs on duplicate elements

Last post 04-30-2007 12:19 PM by OriginalSyn. 2 replies.

Sort Posts:

  • Is there a way to stop VS.NET from changing my IDs on duplicate elements

    04-17-2007, 11:14 AM
    • Member
      119 point Member
    • OriginalSyn
    • Member since 11-30-2006, 3:32 PM
    • Calgary
    • Posts 53

    I find myself having to copy/paste chunks of HTML in my idea and frustrated when I have to completely rename the individual IDs of elements when I could have easily done a simple replace on them.

    e.g., I'd have s1_something, s1_somethingElse, s2_something, s2_somethingElse, ... s9_something, s9_somethingElse

    If I try and copy paste the code for the s1_something, s1_somethingElse elements it's replaced with Text1, Text2 (in reality there are about 16 elements in this group.)

    My work around was to name the first set as s9_ then copy them then change it to s1, so that way there were no elements with s9 until I was at the end.  Now my client wants me to add 6 more, so I have to go through the process again.

    I've scoured the IDE options but have had no luck finding an option to disable this behaviour, does anyone know if this is possible?
     

    I'm moving to Theory, everything works there.
  • Re: Is there a way to stop VS.NET from changing my IDs on duplicate elements

    04-19-2007, 1:32 AM
    Answer

    Hi OriginalSyn,

    From your description, I understand that you would like to copy and paste the HTML elements with duplicate ID. In addition, you don't want Visual Studio to change the ID element automatically.

    If there has been any misunderstanding, please let me know.

    Based on the current situation, I suggest implementing it by unchecking the option: Auto ID elements on paste in Source view.

    We can find it in Tools | Options... | Text Editor | HTML | Miscellaneous

     

    Sincerely,
    Benson Yu
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
  • Re: Is there a way to stop VS.NET from changing my IDs on duplicate elements

    04-30-2007, 12:19 PM
    • Member
      119 point Member
    • OriginalSyn
    • Member since 11-30-2006, 3:32 PM
    • Calgary
    • Posts 53
    Exactly what I was looking for thanks!
    I'm moving to Theory, everything works there.
Page 1 of 1 (3 items)