The keyboard shortcut to change focus to the editor doesn't work.
Show older comments
Maybe I am missing something, I was looking for a way to change focus to the editor pane and I saw the documentation at Use Keyboard Shortcuts to Navigate MATLAB, mentioning Ctrl+Shift+0, but it seems not to work on my machine (Windows 11).
Ctrl+0, the one to change focus to the command window works, and Ctrl+1, Ctrl+2, Ctrl+3 all work as well, but Ctrl+Shift+0 does not. I checked in case there was a global shortcut on Windows set to do something for Ctrl+Shift+0, but there is none; is it a known bug?
In case it adds something, because I read a similar question that mentioned upgrading from an older version of it, it was installed from scratch and there never was an older MATLAB version in the system.
3 Comments
Steven Lord
on 12 Sep 2025
I just tried it on my Windows 11 machine with release R2025a and it worked to switch to the Editor. I note that the documentation page states that the shortcut will make an open tool the active tool (emphasis added.) Can you confirm you already had a document open in the Editor when you tried that keyboard shortcut?
Can you open the Keyboard Shortcut settings (the Settings icon in the Environment section of the Home tab of the toolstrip, under MATLAB expand Keyboard then click on Settings) and make sure that you haven't accidentally assigned that shortcut to another action? Type "Ctrl+Shift" in the search box and make sure that Ctrl+Shift+0 doesn't show up.
Carlisle
on 12 Sep 2025
I do find, in Windows 10, that I can bring the editor into a state where Ctrl+Shift+0 does not work. The steps are as follows:
(1) Open two mfiles File1.m and File 2.m with the editor docked.
(2) Undock File2.m
(3) Close File1.m
Now, try using Ctrl+Shift+0 to toggle focus to File2.m in the external editor window. I find that it does not work.
However, if I then manually bring File2.m into focus with the mouse (see also my answer below), I find that toggling with Ctrl+0 and Ctrl+Shft+0 work again.
Answers (2)
Try first dragging the editor window into focus manually with the mouse. Then, check if Ctrl+0 and Ctrl+Shift+0 toggles the editor in and out of focus.
Check also that you have only a single editor window open and that it is undocked. If you have another editor window open which happens to be docked, Ctrl+Shift+0 will not work.
Carlisle
on 16 Sep 2025
0 votes
2 Comments
Steven Lord
on 16 Sep 2025
Please report this issue to Technical Support directly using this link. If it's an issue that has been reported by other users in the past, they may be able to suggest a workaround. If not, they can escalate it to the development staff.
Carlisle
on 19 Sep 2025
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!