Search code examples
matlab

Go to line in MATLAB editor


How can I conveniently jump to a line of an opened file in MATLAB editor?

I'm aware there's openAndGoToLine, but I have to type the name of the file (that's in focus) each time, and I'm unsure it works with multiple files having the same name (with the URL's approach). In Python it's within a few keypresses.


Solution

  • You can use the keyboard shortcut CTRL + G, which brings up the "go to" dialog, where you can type the line number

    Enter the number and press Enter or click OK

    goto