Modifying text

The default text edit/entry mode is that the text you type will appear at the current cursor position. You have several options available to you when you want to delete text. Here is a complete list:

Delete action PC keyboard combination Mac keyboard combination
Delete the character at the current cursor location Delete Delete
Delete the character to the left of the cursor Backspace Backspace
Delete the text from the cursor location to the end of the line Ctrl + K Cmd + K
Delete the text from the cursor location to the end of the current word Alt + D Alt/Opt + D
Delete from the cursor location to the previous white space Ctrl + W Cmd + W
Paste the most recently deleted text at the cursor location Ctrl + Y Cmd ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.