Matlab keyboard shortcut: move the cursor from the editor to the command window

Is there a keyboard shortcut in Matlab to move the cursor from the editor to the command window? I want to achieve something similar to the effect of the Emacs shortcut Ctrl + x, o , which moves the cursor between the editor windows.

+9
emacs matlab window keyboard-shortcuts tabs
source share
3 answers

On Linux and Windows (checked), if the MATLAB settings are not changed, if you have an editor window, but according to the default settings Ctrl+Tab you will get from the editor to the command window and from there you need to Ctrl+Shift+Tab .

If you come from the Emacs background and would like to use a similar environment to use MATLAB without graphical user interfaces, you can start MATLAB without a desktop using the matlab -nodesktop , when you have the matlab executable in PATH, you can open two Emacs windows , one for editing codes that your MATLAB editor will simulate, and the other will have a MATLAB command line that mimics the MATLAB command window.

If you want to work with MATLAB graphical user interfaces and continue to use Emacs shortcuts for editing in the MATLAB editor, you can go to Preferences > Keyboard Shortcuts Preferences and set the option as Emacs Default Set under the Active settings pop-up menu.

You can find more information on starting MATLAB without desktops here .

+6
source share

On my Mac it is

  • CMD + 0 to go to the command window
  • CMD + SHIFT + 0 to go to the editor

Shortcuts to your system are displayed when you click on the quick access toolbar (top right), the window icon. They are not visible in the Matlab preference settings.

+14
source share

There are 2 ways to do this on a Windows computer:

1) From anywhere in the MATLAB window, use

  • Ctrl + 0 to go to the command window
  • Ctrl + Shift + 0 to go to the editor window.

2) If you have a lot of tiles (for example, the command window, editor, workspace, command history, etc.), then using the Ctrl + tab you will go through each tile every time you press Ctrl +.

0
source share

All Articles