11

Is there a quick keyboard shortcut or Command Palette function to quickly jump to the parent/enclosing function?

So if the cursor is in a function, then I want to quickly jump to the first line of that function.

I looked around but was unable to find such a shortcut.

Gary
  • 1,300

3 Answers3

9

Jump to matching brackets is easy!

Stand on some braces(brackets, parentheses) and press: Ctrl+M(Mac ^+M).

File members

enter image description here

Press Ctrl+R(Mac +R) to see list of file members(variables, functions, methods, etc...)

Anton Dozortsev
  • 3,074
  • 20
  • 21
2

On Windows, press CONTROL + R which lists all the functions in the file with the current function selected. Now, Press ENTER

0

Sublime Move By Symbols allows you to navigate between symbols, so if your cursor is inside a function, then ctrl+up will move it to the function name.