Changing keyboard shortcut for scrolling in Command Window

8 ビュー (過去 30 日間)
Saunok Chakrabarty
Saunok Chakrabarty 2020 年 12 月 22 日
Hi All,
For scrolling up and down through the history in the Command Window, I have to press Page Up and Page Down, while for scrolling through my code history, I'm using the Up and Down buttons in the keyboard. Is there a way to swap this? I know this is a very minor issue, but it'd be much more convenient for me if I could switch these two sets of keyboard preferences. I'm using the 2020a version.
Thanks.

採用された回答

Jemima Pulipati
Jemima Pulipati 2020 年 12 月 26 日
Hello,
From my understanding, you want to change the Keyboard shortcuts preferences for different actions of the command window.
You can change these in the Preference Panel. Go to ‘Preferences’ under the ‘Home’ tab in the toolstrip. Navigate to ‘Keyboard -> Shortcuts’ from the left panel of Preferences.To modify shortcuts for scrolling through code history, search for action name: ‘Previous History Command’ and ‘Next History Command’. You can just click on the shortcuts specified and enter the new shortcut (using the corresponding key from the keyboard) that you want.
To modify the shortcut for scrolling in the command window search for action names: ‘Page Up’ and ‘Page Down’. The default option specified under ‘Tools with shortcut’ will be ‘All Tools’, this can be changed by clicking on it and selecting only ‘MATLAB Editor’. Create a new entry using the ‘+’ symbol with the new shortcut value and the ‘Tools with shortcut’ as ‘Command Window’. This step ensures that the shortcuts are modified only for the Command Window and not for all the other tools.
Click on Apply and OK to save the new preferences.
  1 件のコメント
Saunok Chakrabarty
Saunok Chakrabarty 2021 年 1 月 5 日
Hi Jemima,
I was able to change it the way you advised me to. Thank you so much!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDesktop についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by