microsoft/vscode

Delete word forward/backward

OliverJAsh opened this issue · 4 comments

  • VSCode Version: Code Insiders
  • OS Version: latest OS X

On Mac, a common shortcut across the OS is alt+backspace to delete backwards a word and alt+fn+backspace to delete forwards a word. However, this does not work in vscode.

I have added this to the list of Sublime Text commands that are missing in #3776

Here are some animations I put together to capture the feature.

Delete from cursor to end of line:

delete_cursor_to_end_of_line

Delete prefix to cursor:

delete_prefix_to_cursor

Delete suffix from cursor:

delete_suffix_from_cursor

For deleting from cursor to the end of line, we have ctrl+k builtin.

For deleting word suffix, we have deleteWordRight which is bind to alt+delete by default. For deleting word prefix, it's deleteWordLeft command and alt+backspace.

Should this be closed?

@waderyan I think so :)