Stop using suggested word on right arrow
이전 댓글 표시
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
Rik
2021년 10월 15일
I don't know the actual solution, but you could try escape.
I presume you have already looked at the preferences for the editor?
David Hill
2021년 10월 18일
편집: David Hill
2021년 10월 18일
Image Analyst
2021년 10월 18일
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.
답변 (3개)
Daniel Carlos da Silva
2023년 4월 12일
3 개 추천
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
2021년 10월 15일
1 개 추천
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.
Rik
2021년 10월 16일
1 개 추천
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
David Hill
2021년 10월 18일
편집: David Hill
2021년 10월 18일
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!