Community
    • Login

    Delete a numbered line..

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    8 Posts 4 Posters 964 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.
    • Roy BoothR Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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 Offline
                  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 Offline
                    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

                    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