How to make custom keyboard shortcuts for Simulink ?

6 views (last 30 days)
The shortcut for Run in simulink is F5. I would like to customize to some other key like SHIFT. Can anyone let me know how to do it ?

Answers (1)

Shubham
Shubham on 7 Aug 2024
Hi Vignesh,
As per my understanding, certain default shortcuts in Simulink, like “Run” command are not customizable, but you can still create new Simulink shortcuts for custom actions.
Here's how you can do it:
  1. Create a 'sl_customization.m' file in your current working directory.
  2. Edit the 'sl_customization.m' file to define a custom shortcut. For more information on defining custom shortcuts in Simulink, you can refer to the following blog post: https://blogs.mathworks.com/simulink/2013/06/24/defining-custom-shortcuts-in-simulink/
  3. Save the file and refresh the customizations by running command “sl_refresh_customizations”.
Hope it helps.
Regards,
Shubham

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!