Community
    • Login

    Delete a numbered line..

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 4 Posters 245 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.
    • Roy BoothR
      Roy Booth
      last edited by

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Roy Booth
        last edited by

        @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

        Roy BoothR 1 Reply Last reply Reply Quote 1
        • Roy BoothR
          Roy Booth @PeterJones
          last edited by

          @PeterJones

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

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • Mark OlsonM
            Mark Olson
            last edited by

            @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.

            Roy BoothR 2 Replies Last reply Reply Quote 1
            • Roy BoothR
              Roy Booth @Mark Olson
              last edited by

              @Mark-Olson

              Thank you mark will try that now :)

              1 Reply Last reply Reply Quote 0
              • Roy BoothR
                Roy Booth @Mark Olson
                last edited by

                @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
                • PeterJonesP
                  PeterJones @Roy Booth
                  last edited by PeterJones

                  @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. :-)

                  Alan KilbornA 1 Reply Last reply Reply Quote 1
                  • Alan KilbornA
                    Alan Kilborn @PeterJones
                    last edited by

                    @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
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors