How to delete a line using a shortcut in Gedit?
Solution 1:
yes you can using Ctrl + D as you can see in this page under the Shortcut keys for editing files: Gedit shortcut keys
Solution 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.
Solution 3:
Have a look here
It is Delete the current line:
CTRL+D.