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

21 views (last 30 days)
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

Jesus
Jesus on 7 Jan 2015
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
Jixiong Su
Jixiong Su on 31 Oct 2023
It seems that only can go back to previous files, not different lines inthe same file
Steven Lord
Steven Lord on 31 Oct 2023
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 Desktop 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!