Problems applying custom keyboard shortcut for "New Function"
5 ビュー (過去 30 日間)
古いコメントを表示
Hello all, I customizing matlab for uni and I am trying to add a custom keyboard shortcut for "New Function" but it is not applying. The shortcut IS being saved in the preferences, but it is not activating when I input the keystrokes while working in the editor. And there are no conflicts with pre-existing shortcuts (see image)

I tried using the same keystroke "Ctrl+Shift+N" for another action "Save as" and the shortcut worked as expected. So it seems like the issue is isolated to the action "New Function"
I also did all the basic stuff like restarting matlab and my computer and the issue still persists.
0 件のコメント
回答 (1 件)
Walter Roberson
2024 年 9 月 7 日
notice that "tools with shortcut" is set to MATLAB Desktop. You will need to set that to include the editor if you want to use the shortcut in the editor.
3 件のコメント
Walter Roberson
2024 年 9 月 7 日
Hmmm, there does not appear to be any way to do it. Activating "New Function" from the desktop does nothing (at least in R2024b pre-release), and it is not recognized in the editor. I think you are going to need to report a bug.
"New Example" works from the command window, creating a new LiveScript window... but you would think that it would also allow the shortcut in the editor.
参考
カテゴリ
Help Center および File Exchange で Debugging and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!