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

3 visualizaciones (últimos 30 días)
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 comentarios
Image Analyst
Image Analyst el 3 de Mzo. de 2022
Do you not have the extended keyboard with the navigation pad and the numeric keypad? Does your keyboard not have a delete key?
Matt J
Matt J el 4 de Mzo. de 2022
Editada: Matt J el 4 de Mzo. de 2022
I do have a delete key, but I might prefer a different shortcut.

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 3 de Mzo. de 2022
Usually this is done by the delete key.
  2 comentarios
Matt J
Matt J el 3 de Mzo. de 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.

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 3 de Mzo. de 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 comentarios
Jan
Jan el 3 de Mzo. de 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 el 3 de Mzo. de 2022
Editada: Matt J el 3 de Mzo. de 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:

Iniciar sesión para comentar.

Categorías

Más información sobre Desktop en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by