• Login
Community
  • Login

Delete a numbered line..

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 4 Posters 262 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.
  • R
    Roy Booth
    last edited by Oct 23, 2024, 2:13 AM

    I have a SQL file that is rather large im wondering is there a way to delete an entire line without the usual highlight and drag to top or bottom of that line…

    Is there a way i can just type the LINE No and it deletes the entire line… ??

    thanks in advance

    P 1 Reply Last reply Oct 23, 2024, 2:18 AM Reply Quote 0
    • P
      PeterJones @Roy Booth
      last edited by Oct 23, 2024, 2:18 AM

      @Roy-Booth ,

      Use Ctrl+G to GoTo and enter the line number (you may have to choose Line rather than Pos the first time), then Ctrl+D to delete the line once you are on the line

      R 1 Reply Last reply Oct 23, 2024, 2:47 AM Reply Quote 1
      • R
        Roy Booth @PeterJones
        last edited by Oct 23, 2024, 2:47 AM

        @PeterJones

        Thanks Peter that didnt seem to work CTRL+G went to page number but CTRL+D did nothing afterwards

        P 1 Reply Last reply Oct 23, 2024, 1:06 PM Reply Quote 0
        • M
          Mark Olson
          last edited by Oct 23, 2024, 2:58 AM

          @Roy-Booth
          If you go to Macro->Modify Shortcut/Delete Macro... from the main menu, then go to the Scintilla commands tab, you can choose the keybinding for SCI_LINEDELETE, which deletes the currently selected line. On my setup, SCI_LINEDELETE is bound to Ctrl+Shift+L, not Ctrl+D as indicated by PeterJones.

          R 2 Replies Last reply Oct 23, 2024, 3:30 AM Reply Quote 1
          • R
            Roy Booth @Mark Olson
            last edited by Oct 23, 2024, 3:30 AM

            @Mark-Olson

            Thank you mark will try that now :)

            1 Reply Last reply Reply Quote 0
            • R
              Roy Booth @Mark Olson
              last edited by Oct 23, 2024, 3:46 AM

              @Mark-Olson said in Delete a numbered line..:

              @Roy-Booth
              If you go to Macro->Modify Shortcut/Delete Macro... from the main menu, then go to the Scintilla commands tab, you can choose the keybinding for SCI_LINEDELETE, which deletes the currently selected line. On my setup, SCI_LINEDELETE is bound to Ctrl+Shift+L, not Ctrl+D as indicated by PeterJones.

              Thank you again mark that did the trick :)

              1 Reply Last reply Reply Quote 0
              • P
                PeterJones @Roy Booth
                last edited by PeterJones Oct 23, 2024, 1:08 PM Oct 23, 2024, 1:06 PM

                @Roy-Booth said in Delete a numbered line..:

                but CTRL+D did nothing

                Sorry, I was going from memory, on my phone, just before bed after my computer was already off for the night. I guess I shouldn’t post that late in the evening for me. :-)

                A 1 Reply Last reply Oct 23, 2024, 1:07 PM Reply Quote 1
                • A
                  Alan Kilborn @PeterJones
                  last edited by Oct 23, 2024, 1:07 PM

                  @PeterJones said in Delete a numbered line..:

                  I was going from memory, on my phone, just before bed.

                  Bad plan. :-)

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