MATLAB Answers

Switch to last opened tab in Editor

3 views (last 30 days)
Joseph Cullen
Joseph Cullen on 21 Dec 2015
Answered: CdC on 10 Apr 2020
I need a quick way to switch between two opened tabs in Editor that are not next to each other. I need a keyboard shortcut that will switch back to the last file I was editing.
I often have many .m files open as tabs. I usually I am actively editing two or three of these files and occasionally editing the rest of them. In particular, I am often switching frequently between two files. This behavior is the default for app switching on Mac/Windows and within other apps such as Textmate. The only keyboard shortcuts for tab switching are to move up/down the list of files (ctrl-pgup/pgdwn). This is clunky. Any suggestions?

Answers (4)

Matthew
Matthew on 5 Sep 2018
This functionality needs to exist. Most Python IDE's have this capability. It is a great hindrance to efficiency.

Odd Trandem
Odd Trandem on 3 Oct 2019
Edited: Odd Trandem on 3 Oct 2019
This shortcut is available in nearly all other IDEs and text editors, and is strongly missed in the Matlab editor.

Renato Agurto
Renato Agurto on 21 Dec 2015
I don't know if its possible. If your MATLAB version allows it, you can move the tabs and place them next to each other and thenuse ctrl+pguo/pgdown
Or you can use View-> tiles -> Left/right and you can split the editor in 2 and see 2 files at the same time
  2 Comments
Renato Agurto
Renato Agurto on 21 Dec 2015
Sorry, but according to "MATLAB Keyboard Shortcuts Preferences" there isn't any ahorcut to switch tabs, other than what you already mentioned

Sign in to comment.


CdC
CdC on 10 Apr 2020
This needs to be added, as in other IDEs. cmd-E please!

Products

Community Treasure Hunt

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

Start Hunting!

Translated by