Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

yes you can using Ctrl + D as you can see in this page: Gedit shortcut keys

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

Have a look here

It is Delete the current line: CTRL+D.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.