Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Assign a custom shortcut to keyboard-shortcut

Asked by Diego on 1 Aug 2013

Hello,

I've created a new shortcut on the bar on the top right with the following contents:

% Change Directory to Currently Selected File in Editor
cd(fileparts(matlab.desktop.editor.getActiveFilename));

Another has this:

% Open Explorer to Currently Selected File
winopen(fileparts(matlab.desktop.editor.getActiveFilename));

I use this quite frequently and am wondering if I can assign them to a keyboard shortcut. I can't seem to find them under prefrences-->keyboard..etc.

Thanks!

0 Comments

Diego

Tags

Products

No products are associated with this question.

1 Answer

Answer by Sean de Wolski on 1 Aug 2013
Accepted answer

You can get keyboard mnemonics by holding the [alt] key (Windows, not sure about others) and either releasing it or waiting a second. The number or letter to complete the mnemonic will appear, press this key and it will run.

1 Comment

Diego on 1 Aug 2013

thank you that did it!

Sean de Wolski

Contact us