Search Unity

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:
    6,338
    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.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,440
  4. giraffe1

    giraffe1

    Joined:
    Nov 1, 2014
    Posts:
    302