Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. Unity 2017.3 has arrived! Read about it here.
    Dismiss Notice
  3. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Copying code from a forum thread?

Discussion in 'Meta-forum Discussion' started by Silverman71, Jan 13, 2018.

  1. Silverman71

    Silverman71

    Joined:
    Nov 14, 2017
    Posts:
    10
    Hi!

    New to the forum (which is great!) and I have a question regarding the threads.

    Within threads there are sometimes text formatted as Code and that "codesnippet" you sometimes wants to copy into Visual Studio.

    The problem is that the line-numbers always comes with the copied text into Visual Studio which makes it a bit tedious to remove all those line-numbers.

    Is there any other way to copy code from a thread or should this be considered a "feature" ? ;)
     
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    2,698
    I believe that if you do a text-only paste (crtl+shift+v), the line numbers are stripped, as they're formatting, not actual text.