Stop using suggested word on right arrow

44 visualizaciones (últimos 30 días)
David Hill
David Hill el 15 de Oct. de 2021
Respondida: Daniel Carlos da Silva el 12 de Abr. de 2023
Hello,
I just updated to the Matlab 2021b from 2018b and I am enjoying the added autocompletion features. One thing that is is frustrating however is when I, for example, want to type the string 'ex' and press right arrow key to get out of the auto-added closing apostrophe and it autocompletes to 'example'.
I've looked around the shortcut settings but cannot find a way of disabling autocomplete on right arrow (I use tab for autocompletion anyway), anyone know how to disable this?
Thanks!
  3 comentarios
David Hill
David Hill el 18 de Oct. de 2021
Editada: David Hill el 18 de Oct. de 2021
Yes, hitting escape then right key does not trigger the input of the suggestion of the right arrow key. Albeit a bit cumbersome, this is less cumbersome than using the mousepointer to click outside the brackets or continuing to type the ending bracket as Image Analyst suggested.
Image Analyst
Image Analyst el 18 de Oct. de 2021
I'm not sure how just simply typing what you were going to type anyway (an apostrophe if you wanted 'ex' instead of 'example', basically just ignoring it's autocomplete suggestion) is more cumbersome than hitting the Esc key.

Iniciar sesión para comentar.

Respuestas (3)

Daniel Carlos da Silva
Daniel Carlos da Silva el 12 de Abr. de 2023
So, I might be a bit late for this answer, but apparently they added the option to disable this feature, at least in MATLAB 2023a:
It was driving me nuts as well...
Daniel.

Image Analyst
Image Analyst el 15 de Oct. de 2021
You can just keep typing and as long as you're not typing letters from example, the example should go away. For example if you type ex' or ex) or ex(space) or ex =, then as soon as you don't type an "a", example should disappear.
  1 comentario
David Hill
David Hill el 18 de Oct. de 2021
Thanks! I would agree that this is the best way to do it but, since I am not using an english keyboard layout some of the bracket keys are somewhat uncomfortable for me to type so most of the time it is easier to just hit the right arrow key.

Iniciar sesión para comentar.


Rik
Rik el 16 de Oct. de 2021
I just checked for you:
If you go to the preferences (in the 'Home' tab), you can disable the automatic completions in the MATLAB>Editor/Debugger>Automatic Completions.
If you select 'Show on tab' this will hide the autocompletions. You can still get the suggestions if you use tab.
  1 comentario
David Hill
David Hill el 18 de Oct. de 2021
Editada: David Hill el 18 de Oct. de 2021
Thanks! Though it seems that this only allows me to remove the autocompleted ending brackets but does not remove that right-arrow inputs the suggestion.

Iniciar sesión para comentar.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

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