Is there a keyboard shortcut for deleting one character ahead of the cursor, instead of one character behind it?

3 views (last 30 days)
Is there a keyboard shortcut for deleting one character ahead of the cursor, instead of one character behind it (backspace)? Back in the days when I was using xemacs for my Matlab editor, I could do this with Ctrl+D. If it exists in Matalb, what is it's "action name" within the keyboard shortcuts preference editor, so that I might customize it?
  4 Comments
Image Analyst
Image Analyst on 3 Mar 2022
Do you not have the extended keyboard with the navigation pad and the numeric keypad? Does your keyboard not have a delete key?

Sign in to comment.

Accepted Answer

Jan
Jan on 3 Mar 2022
Usually this is done by the delete key.
  2 Comments
Matt J
Matt J on 3 Mar 2022
@Jan, Thanks a lot.
what is it's "action name" within the keyboard shortcuts preference editor, so that I might customize it?
And, in answer to this part, there is a "Delete" action in the preference settings that can be reassigned.

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 3 Mar 2022
For some reason, Apple keyboards don't have a delete key. Or actually what they called delete was actually a backspace key. I always hated that about them. So what I did was to get a Logitech keyboard (for my wife's Mac) that had both a backspace key (delete to the left of the cursor) and delete key (delete to the right of the cursor). Problem solved.
  2 Comments
Jan
Jan on 3 Mar 2022
My Apple keyboard does have a delete key. It is a German keyboard and the key is marked as "Entf".
The compact keyboard without a number block use Fn-Delete (which is the "Backspace"-key...) or control-D.
Matt J
Matt J on 3 Mar 2022
Edited: Matt J on 3 Mar 2022
If you have a keyboard lacking a Delete key then, for Matlab purposes at least, you can reassign the Delete action to a different keyboard shortcut:

Sign in to comment.

Categories

Find more on Desktop in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!