"Move cursor to previously edited location" - Keyboard shortcut for Windows 7?

Hi,
Does anyone know the Windows 7 keyboard shortcut to achieve the same action performed by the "Move cursor to previously edited location" button on the toolstrip of Editor tab in Matlab R2013a? This button can be found around the middle of the Editor toolstrip just above the 'Goto' button. I go and click at this button quite frequently to jump back and forth between lines of code that are many lines apart. This commonly happens for example when I edit some sub-function and want to go back to the main function.
Thanks Mani

 Accepted Answer

I don't know if you already solved this question, but I will write the answer here so that anyone who wonder this (just like you or me) can easily find it.
As in other editors the shortcut (Alt+Left) exists here. However, I needed to do some adjustments to use it in Editor. Search in Preferences -> Keyboard -> Shortcuts the Back action. In the window below it should appear that Alt+Left is the already existing shortcut for this action. In the column Tools with shortcut you should mark Matlab Editor in order to apply this shortcut.
This worked for me in Linux, but I think it should be all the same in any platform.

4 Comments

Thank you so much Jesus! It worked great. By default, only "Help and HTML Viewers" was chosen in the "Tools with Shortcut" column. All I needed to do was to click on the "Help and HTML Viewers" and in the dropdown menu, I could see "MATLAB Editor" and I marked it. It saved so much of my time. Thanks a lot.
Definitely the method that works for Linux Mint 18.X and Matlab R2018B.
It seems that only can go back to previous files, not different lines inthe same file
If you're jumping between locations within a file, you probably want to use bookmarks. See the "Go To Location in File" section on this documentation page.

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Asked:

vta
on 11 Oct 2013

Commented:

on 31 Oct 2023

Community Treasure Hunt

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

Start Hunting!