How to delete a line using a shortcut in Gedit?












8















Is there any shortcut for it?



If not is it possible to set a key for this operation?



I am using Ubuntu 14.04 LTS.










share|improve this question





























    8















    Is there any shortcut for it?



    If not is it possible to set a key for this operation?



    I am using Ubuntu 14.04 LTS.










    share|improve this question



























      8












      8








      8








      Is there any shortcut for it?



      If not is it possible to set a key for this operation?



      I am using Ubuntu 14.04 LTS.










      share|improve this question
















      Is there any shortcut for it?



      If not is it possible to set a key for this operation?



      I am using Ubuntu 14.04 LTS.







      gedit






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 14 '16 at 17:52









      kos

      25.6k870121




      25.6k870121










      asked Mar 14 '16 at 17:29









      alhelalalhelal

      71121232




      71121232






















          4 Answers
          4






          active

          oldest

          votes


















          4














          yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys






          share|improve this answer

































            2














            Yes. Position the cursor anywhere on the line you wish to delete and hit CTRL+D.



            Apparently the shortcut is simply built-in into Gedit. I can't find an easy way to change it; apparently that's technically not possible [anymore], or at least not easily.






            share|improve this answer

































              1














              Have a look here



              It is Delete the current line: CTRL+D.






              share|improve this answer































                0














                For anything related to text in general:



                Use Home to put the cursor at the beginning of the line then Shift+End+backspace



                Similarly you can set the cursor at the end using End then Shift+Home+backspace






                share|improve this answer

























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "89"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f745912%2fhow-to-delete-a-line-using-a-shortcut-in-gedit%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  4 Answers
                  4






                  active

                  oldest

                  votes








                  4 Answers
                  4






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  4














                  yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys






                  share|improve this answer






























                    4














                    yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys






                    share|improve this answer




























                      4












                      4








                      4







                      yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys






                      share|improve this answer















                      yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 19 at 20:46

























                      answered Mar 14 '16 at 17:41









                      Antonios LamprosAntonios Lampros

                      5818




                      5818

























                          2














                          Yes. Position the cursor anywhere on the line you wish to delete and hit CTRL+D.



                          Apparently the shortcut is simply built-in into Gedit. I can't find an easy way to change it; apparently that's technically not possible [anymore], or at least not easily.






                          share|improve this answer






























                            2














                            Yes. Position the cursor anywhere on the line you wish to delete and hit CTRL+D.



                            Apparently the shortcut is simply built-in into Gedit. I can't find an easy way to change it; apparently that's technically not possible [anymore], or at least not easily.






                            share|improve this answer




























                              2












                              2








                              2







                              Yes. Position the cursor anywhere on the line you wish to delete and hit CTRL+D.



                              Apparently the shortcut is simply built-in into Gedit. I can't find an easy way to change it; apparently that's technically not possible [anymore], or at least not easily.






                              share|improve this answer















                              Yes. Position the cursor anywhere on the line you wish to delete and hit CTRL+D.



                              Apparently the shortcut is simply built-in into Gedit. I can't find an easy way to change it; apparently that's technically not possible [anymore], or at least not easily.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Apr 13 '17 at 12:23









                              Community

                              1




                              1










                              answered Mar 14 '16 at 17:39









                              koskos

                              25.6k870121




                              25.6k870121























                                  1














                                  Have a look here



                                  It is Delete the current line: CTRL+D.






                                  share|improve this answer




























                                    1














                                    Have a look here



                                    It is Delete the current line: CTRL+D.






                                    share|improve this answer


























                                      1












                                      1








                                      1







                                      Have a look here



                                      It is Delete the current line: CTRL+D.






                                      share|improve this answer













                                      Have a look here



                                      It is Delete the current line: CTRL+D.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Mar 14 '16 at 17:40









                                      cmkscmks

                                      1,5591616




                                      1,5591616























                                          0














                                          For anything related to text in general:



                                          Use Home to put the cursor at the beginning of the line then Shift+End+backspace



                                          Similarly you can set the cursor at the end using End then Shift+Home+backspace






                                          share|improve this answer






























                                            0














                                            For anything related to text in general:



                                            Use Home to put the cursor at the beginning of the line then Shift+End+backspace



                                            Similarly you can set the cursor at the end using End then Shift+Home+backspace






                                            share|improve this answer




























                                              0












                                              0








                                              0







                                              For anything related to text in general:



                                              Use Home to put the cursor at the beginning of the line then Shift+End+backspace



                                              Similarly you can set the cursor at the end using End then Shift+Home+backspace






                                              share|improve this answer















                                              For anything related to text in general:



                                              Use Home to put the cursor at the beginning of the line then Shift+End+backspace



                                              Similarly you can set the cursor at the end using End then Shift+Home+backspace







                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited Mar 15 '16 at 13:05









                                              techraf

                                              2,77092035




                                              2,77092035










                                              answered Mar 14 '16 at 19:43









                                              mohamedyixmohamedyix

                                              194




                                              194






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Ask Ubuntu!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f745912%2fhow-to-delete-a-line-using-a-shortcut-in-gedit%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  How to make a Squid Proxy server?

                                                  第一次世界大戦

                                                  Touch on Surface Book