Unable to use CTRL+R to comment

回答 (1 件)

Steven Lord
Steven Lord 2020 年 9 月 17 日

0 投票

Open the Preferences using the button in the Enviroment section on the Home tab of the Toolstrip. In the MATLAB section of the preferences expand Keyboard and click on the Shortcuts sub-item. Search for action name "Comment" to see the shortcut that is currently enabled to perform that action. If Ctrl-R is not listed, I'm guessing you're using either Emacs or Mac shortcuts. You could customize that one action's shortcut or change the whole set to "Windows Default Set".
See this documentation page for more information.

5 件のコメント

Unix Izyah Arfianti
Unix Izyah Arfianti 2020 年 9 月 23 日
CTRL+R is listed and I set to "Windows Default Set" but it can't be used eventhough CTRL+T (uncomment) can be used.
do you know why? thank you for your response
Anirudh Chhabra
Anirudh Chhabra 2020 年 9 月 27 日
I have this same issue. Can't figure out a way to get it working. It's annoying
Eline van der Kruk
Eline van der Kruk 2020 年 10 月 1 日
編集済み: Eline van der Kruk 2020 年 10 月 1 日
After reactivating my Matlab license, I suddenly have this same problem.Ctrl+r is listed in the shortcut panel but not working (crtl+T is working). Anyone found a solution yet?
Matthew Foreman
Matthew Foreman 2021 年 7 月 13 日
Did you ever figure this out? I am having the same issue. Ctrl + R won't register in the keyboard mapping preferences screen.
Steven Lord
Steven Lord 2021 年 7 月 13 日
I wonder if some other application is intercepting the Ctrl+R combination before it reaches MATLAB. For example you couldn't set a keyboard shortcut to Ctrl+Alt+Delete in MATLAB because Windows says "No, that's for me." and takes care of the combination before MATLAB can learn that those keys were pressed.
Maybe some sort of screen capture program? Unfortunately without knowing what applications you have, testing this hypothesis could be a challenge. Does anything happen on the computer, even outside MATLAB, when you press Ctrl+R?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeEnvironment and Settings についてさらに検索

製品

リリース

R2019a

質問済み:

2020 年 9 月 17 日

コメント済み:

2021 年 7 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by