• Login
Community
  • Login

How to prevent re-alignment of lines

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
6 Posts 2 Posters 203 Views
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.
  • G
    Graham Norris
    last edited by Dec 27, 2024, 10:56 AM

    When editing, I find that NPP’s re-alignment of lines is very irritating. I’ve not found a way to turn it off, but hopefully there is a way, and someone can tell me how to do so. Here is an example:

    ca0e351d-f6c4-4262-8ff1-27fda116569f-image.png

    (Note that this doesn’t just affect Powershell’s .ps1 files, but as far as I can tell, it affects all languages.)

    A 1 Reply Last reply Dec 27, 2024, 12:25 PM Reply Quote 0
    • A
      Alan Kilborn @Graham Norris
      last edited by Alan Kilborn Dec 27, 2024, 12:25 PM Dec 27, 2024, 12:25 PM

      @Graham-Norris

      Here’s my result:

      f85886df-c8ec-4d2e-879b-6d2ea5cb9d9b-image.png

      Note that my line 8 doesn’t look like yours, but you didn’t explain exactly how you achieved your result, so…
      about all I can say is that Notepad++ does NOT strip whitespace or anything else upon pasting.

      My head hurts when I read your comments on your lines 12-15 (i.e., I can’t follow it), so I can’t talk at all on what might be happening there for you.

      G 1 Reply Last reply Dec 27, 2024, 1:22 PM Reply Quote 0
      • G
        Graham Norris @Alan Kilborn
        last edited by Dec 27, 2024, 1:22 PM

        @Alan-Kilborn said in How to prevent re-alignment of lines:

        @Graham-Norris

        Here’s my result:

        Note that my line 8 doesn’t look like yours, but you didn’t explain exactly how you achieved your result, so…
        about all I can say is that Notepad++ does NOT strip whitespace or anything else upon pasting.

        My head hurts when I read your comments on your lines 12-15 (i.e., I can’t follow it), so I can’t talk at all on what might be happening there for you.

        Thank you for replying. Your result does suggest there is a setting somewhere which affects this. It is just a matter of finding it.

        I’m not sure how to make what I did for the second any clearer. Just do each thing one step at a time:

        1. Do a copy and paste.
        2. Manually fix loss of indentation of the first pasted line.
        3. Replace the second line with just Return (an empty line.) Maybe that isn’t clear enough: a) select the line, b) press Return. 2nd line is now empty, but still there. 3rd line has lost its indentation.
        1 Reply Last reply Reply Quote 0
        • A
          Alan Kilborn
          last edited by Dec 27, 2024, 2:40 PM

          Selection before copying:
          028c5638-eeab-493e-a734-785b9f7c2f12-image.png

          After pasting:
          d0ae5473-f950-4f43-bee5-952e364ade1a-image.png

          After selecting $b=2 line:
          c8512c24-8da5-495f-bed0-5a08dc87f6ab-image.png

          After pressing Enter:
          3c5acbdf-1b47-4a4f-b721-27f71834a9dd-image.png

          G 1 Reply Last reply Dec 27, 2024, 4:19 PM Reply Quote 0
          • G
            Graham Norris @Alan Kilborn
            last edited by Dec 27, 2024, 4:19 PM

            @Alan-Kilborn Yes, fine, it doesn’t happen for you. It also appears you have no idea what controls it. Hopefully someone else does.

            A 1 Reply Last reply Dec 27, 2024, 4:28 PM Reply Quote 0
            • A
              Alan Kilborn @Graham Norris
              last edited by Dec 27, 2024, 4:28 PM

              @Graham-Norris said :

              Hopefully someone else does.

              Yes. But yours is such an oddball problem, I have doubts.

              Are you using any unusual plugin?
              Can you post your Debug Info here?
              See Notepad++'s ? menu for how to obtain that.

              1 Reply Last reply Reply Quote 0
              3 out of 6
              • First post
                3/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors