MATLAB Answers


Assign a custom shortcut to keyboard-shortcut

Asked by Diego
on 1 Aug 2013
Latest activity Commented on by Matthew Eicholtz on 23 Sep 2016


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

Another has this:

% Open Explorer to Currently Selected File

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.



Log in to comment.


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.


thank you that did it!

Sean, do you know if it is possible to edit the keyboard shortcuts for the quick access toolbar? Say if I want to use Alt+C instead of Alt+1 for the first icon on the toolbar?

This answer makes me think it is not possible, but I hope it is.

Log in to comment.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today