Community
    • Login

    Where does "Split Lines" actually split?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    menulinescolumnstext
    7 Posts 3 Posters 1.4k Views 2 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.
    • F Offline
      freeSeeker
      last edited by

      Assuming you have one or more lines highlighted, you can do Edit->Line Operations->Split Lines. How does Notepad++ determine where to split the line? I thought it was determined by Vertical Edge Settings in Preferences, but that doesn’t seem to be the case. Can that be configured?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @freeSeeker
        last edited by

        @freeSeeker ,

        What version do you have (go to ? > Debug Info, and copy the data in that dialog into your reply).

        With the upgrade to v7.8.6, there is a known bug that the Vertical Edge Settings no longer work with Split Lines, including mention of a workaround.

        There is more discussion here.

        1 Reply Last reply Reply Quote 1
        • F Offline
          freeSeeker
          last edited by

          Notepad++ v7.8.6 (32-bit)
          Build time : Apr 21 2020 - 15:17:06
          Path : C:\Program Files (x86)\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS Name : Windows 8.1 Pro (64-bit)
          OS Build : 9600.0
          Plugins : mimeTools.dll NppConverter.dll NppExport.dll

          Thank you for that info! I think what I am seeing is related to that bug. However, no matter what I do, it doesn’t break the lines at the column I specify.

          Should I document that in the discussion thread?

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP Online
            PeterJones @freeSeeker
            last edited by

            @freeSeeker said in Where does "Split Lines" actually split?:

            Should I document that in the discussion thread?

            Yes, adding your experience to the bug report would help.

            1 Reply Last reply Reply Quote 1
            • pbarneyP Offline
              pbarney
              last edited by

              This question has been addressed elsewhere, but this particular community topic showed up at the top of my web search results, so I’ll add an answer for future visitors.


              When using Edit → Line Operations → Split Lines (Ctrl+I) to split long lines into multiple shorter lines, the splitting point depends on your Vertical Edge Settings.

              You can this at Settings → Preferences → Margins/Border/Edge → Vertical Edge Settings.

              Vertical Edges are purely visual column markers. They do not effect your editing in any way. They do not cause auto-wrap or act as any kind of fixed edge. You can specify one or more for whatever purposes you deem fit.

              Here is how they affect Split Lines (Ctrl+I):

              • If you do not have any vertical edges defined, your lines will spliit at the edge of the editor window.

              • If you do have one or more vertical edges defined in your settings, your lines will split at the last number listed in the Vertical Edge Settings field.

              It is crucial to realize that the column numbers do not need to be listed in any particular order.

              For example:

              Vertical Edge Settings Lines Split at
              [80] Column 80
              [80 100 120] Column 120
              [80 120 100] Column 100

              Disclaimer: because I’ve been accused of this multiple times before, I probably need to say it: this post may sound like it’s AI-generated, but I write technical documentation, and this is just the way I write.

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP Online
                PeterJones @pbarney
                last edited by PeterJones

                @pbarney ,

                There are users who I would accuse of being AI, but you’re not one of them. ;-)

                It should be noted that the original question in 2020 came up because of a bug that lasted for a while (from v7.8.6 in Apr 2020 until it was fixed in v7.9.3 in Jan 2021), whereby it wasn’t splitting correctly because of multiple vertical edge settings introduced in v7.8.6.

                But your description is helpful for users of modern Notepad++, if they run across this discussion.

                The User Manual’s Edit Menu description does try to give the short version of your post. (But the word “rightmost” has two different interpretations, so the point about 80 120 100 splitting at column 100 might not be obvious, even after the first reading of that. I didn’t have the same interpretation of rightmost as the author of that line in the Manual, but I had never gone back and clarified; I think I will, now, just for completeness’ sake. [edit: clarified and published]

                pbarneyP 1 Reply Last reply Reply Quote 1
                • pbarneyP Offline
                  pbarney @PeterJones
                  last edited by

                  @PeterJones

                  Thanks for the feedback!

                  You’re “right,” depending on how people read it, the term “rightmost” could apply to the number or to the vertical line, so it makes sense to clarify that.

                  1 Reply Last reply Reply Quote 0

                  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