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

3 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2022-3-3
Do you not have the extended keyboard with the navigation pad and the numeric keypad? Does your keyboard not have a delete key?

请先登录,再进行评论。

采纳的回答

Jan
Jan 2022-3-3
Usually this is done by the delete key.
  2 个评论
Matt J
Matt J 2022-3-3
@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.

请先登录,再进行评论。

更多回答(1 个)

Image Analyst
Image Analyst 2022-3-3
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 个评论
Jan
Jan 2022-3-3
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 2022-3-3
编辑:Matt J 2022-3-3
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:

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Desktop 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by