Sublime Text 3: How to jump to the parent/enclosing function?
6,778
Solution 1
Jump to matching brackets is easy!
Stand on some braces(brackets, parentheses) and press: Ctrl+M(Mac ^+M).
File members
Press Ctrl+R(Mac ⌘+R) to see list of file members(variables, functions, methods, etc...)
Solution 2
On Windows, press CONTROL + R
which lists all the functions in the file with the current function selected. Now, Press ENTER
Related videos on Youtube
Author by
Gary
Updated on September 18, 2022Comments
-
Gary over 1 year
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.
-
user1063287 almost 5 years
Ctrl
+R
(Mac⌘
+R
) was very helpful for me - I came across this post trying to find a way to see the current "scope" of where my cursor was (ie the containing function). This allowed me to do that and then pressEsc
to get back to the cursor position.