Community
    • Login

    Is there a way to copy and paste onto multiple lines without displacing text?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 29.6k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Paul TinkleP Offline
      Paul Tinkle
      last edited by Paul Tinkle

      So I think it’s best just to provide an example cause it’s hard to explain
      so Imagine I have
      1
      2
      3
      4
      and I need to copy four items one on each line
      Is there a way to do so without it becoming
      1 item
      item
      item
      item
      2
      3
      4?
      and rather
      1item
      2item
      3item
      4item?

      1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner
        last edited by

        I’m really uncertain as to what you’re asking about, but…as long as your paste-point is in the same column in the multiple lines (like it is in your example above), all you have to do is obtain a “column caret” and do the paste.

        For example, put the caret to the right of the “1” in your example. Press Shift+Alt+DownArrow three times (this will give you a column-caret on the four lines after the numbers. Then…paste. Whatever is in the clipboard (which is hopefully without line-endings) will appear on each line after the number that is already there.

        If I’m off-base about what you’re asking for, I’m sorry, and could you please clarify?

        1 Reply Last reply Reply Quote 0
        • Paul TinkleP Offline
          Paul Tinkle
          last edited by

          Alright I’ll try and clarify
          so I have two documents, I’ll show some of whats on them
          the first one is
          1|
          2|
          3|
          and so on
          the other one is
          Long Island
          Brooklyn
          Manhatten
          Now I want to copy the three of those and paste it so that only one goes on each line so that it’s
          1|long island
          2|brooklyn
          3| Manhatten
          instead of
          1|long Island
          brooklyn
          Manhatten
          2|
          3|

          1 Reply Last reply Reply Quote 0
          • Scott SumnerS Offline
            Scott Sumner
            last edited by

            Ah, okay…in your first posting all the things to paste in were the same (“item”). Since they are actually different, copy them as a column block from their source (hopefully also Notepad++) using Shift+Alt+arrows to define the column block, and invoke copy. Then, at the intended destination, on the first line, invoke a paste.

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors