Bug 564929 - Delete line shortcut does not delete last editor line
Summary: Delete line shortcut does not delete last editor line
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.16   Edit
Hardware: All Windows All
: P3 normal with 1 vote (vote)
Target Milestone: 4.17 M3   Edit
Assignee: Pierre-Yves Bigourdan CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks: 563540
  Show dependency tree
 
Reported: 2020-07-04 13:43 EDT by Pierre-Yves Bigourdan CLA
Modified: 2020-08-10 07:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Yves Bigourdan CLA 2020-07-04 13:43:32 EDT
When using an Eclipse editor, the "Delete Line" shortcut (Ctrl+D or Cmd+D by default) does not delete the last line.

This technically makes sense: if it's empty, the last line doesn't really exist per say, it's the visual representation of the newline character from the previous line.

However, from a user perspective, this is annoying. I often find myself jumping to the end of the file and wanting to delete lines (for example when you end up with too many trailing empty new lines), and I regularly get caught by the fact that the shortcut doesn't work there.

IntelliJ allows to delete trailing lines using the delete line shortcut.

Could this behaviour please be changed in Eclipse?
Comment 1 Eclipse Genie CLA 2020-07-30 03:06:15 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/167043
Comment 3 Eclipse Genie CLA 2020-08-09 03:52:27 EDT
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/167427