Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sublime Text 2 plugin to find and open a function's declaration in your project
branch: master
Failed to load latest commit information.
.gitignore Initial commit
Context.sublime-menu initial commit
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
Main.sublime-menu added a menu item to access settings Added alternative install instructions Update
go2function.sublime-settings fixed comments in settings file


Sublime Text 2 plugin to find and open a function's declaration in your project


The easy way...

  1. Just use Package Control to install it

The slightly less (but still fairly) easy way...

  1. Click Preferences -> Browse Packages
  2. Download the source code folder and paste into the packages folder

The slightly geeky way...

  1. git clone this repo into your sublime packages directory


Highlight a function and either hit F8 or right click and go to Find Function Definition. Plugin will search your project for the function and open a file up to it, or if multiple instances found display a list of files to open.

Takes into account folder_exclude_patterns and file_exclude_patterns settings.


The following function definition patterns are used by default, but you can add your own by going to Preferences -> Package Settings -> Find Function Definition -> Settings - User

  "definitions": /* where $NAME$ is the name of the function */
    "function $NAME$",
    "$NAME$: function",
    "$NAME$ = function",
    "$NAME$= function",
    "def $NAME$("
  "file_exclude_patterns": [] /* optional list of files to exclude, falls back to global setting if not set */
Something went wrong with that request. Please try again.