Pre-R2012b Zoom Keyboard Shortcuts

バージョン 1.1.0.1 (2.45 KB) 作成者: Mike Anthony
Enables use of r, v, 1, anf f as keyboard shortcut keys for zooming in Simulink
ダウンロード: 760
更新 2016/9/1

ライセンスの表示

One of the significant changes in the updated editor windows in R2012b was a change in the shortcut keys in Simulink for zooming. In R2012b and later, zooming is controlled using the scroll-wheel on the mouse (or Ctrl+Scroll depending on your preferences). The keyboard shortcut keys for zooming were assigned to the much more standard zoom shortcut keys of Ctrl++ and Ctrl+-. However, these keyboard shortcuts more difficult to use with one hand on the keyboard and one hand on the mouse (a common practice for long-time Simulink users).
This function enables the use of the pre-R2012b keyboard shortcuts in R2012b and later:
r: zoom in
v: zoom out
1: Normal View (100%)
f: fit selected block(s) to window

This simply adds these shortcuts, and does not deactivate the use of Ctrl++, Ctrl+-, or the scroll wheel.

To apply the customization, from the .zip file extract the file sl_customization.m and put it somewhere on your MATLAB path. At the MATLAB command prompt, run sl_refresh_customizations. These customizations should then appear in the Simulink->View menu and the keyboard shortcuts should be active.

Note: for some reason the first few attempts to use this after registering the customization are very slow. However, it seems to then behave normally after that. I have not yet figured out why.

引用

Mike Anthony (2024). Pre-R2012b Zoom Keyboard Shortcuts (https://www.mathworks.com/matlabcentral/fileexchange/42298-pre-r2012b-zoom-keyboard-shortcuts), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersModeling についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.1

Updated license

1.1.0.0

Update to includes:
1. Centering while zooming when using r.
2. f for fit to window
3. small typo fixes

1.0.0.0