Bug 564929

Summary: Delete line shortcut does not delete last editor line
Product: [Eclipse Project] Platform Reporter: Pierre-Yves Bigourdan <pyvesdev>
Component: TextAssignee: Pierre-Yves Bigourdan <pyvesdev>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, Lars.Vogel
Version: 4.16Keywords: usability
Target Milestone: 4.17 M3   
Hardware: All   
OS: Windows All   
See Also: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/167043
https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=1bebc2ee92d1b9b2e5325f51fb6dc28b03803e47
https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/167427
https://git.eclipse.org/c/platform/eclipse.platform.text.git/commit/?id=6952968d00477c57c6feaea28c7690824b78e77b
Whiteboard:
Bug Depends on:    
Bug Blocks: 563540    

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