9

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.

5

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

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.

1

Have a look here

It is Delete the current line: CTRL+D.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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