ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Go​To​Class

by vovayatsyuk ALL

Sublime Text Plugin to open the class file of the highlighted name

Details

  • 2.1.0
  • github.​com
  • 11 months ago
  • 1 hour ago
  • 11 years ago

Installs

  • Total 14K
  • Win 8K
  • Mac 3K
  • Linux 2K
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
Windows 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 1 0 2 0 0 4 1 0 0 1 1 1 0 0 0 0 0 1
Mac 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

GoToClass

Sublime Text Plugin to open the highlighted or parent class file.

Installation

  1. Run Package Control: Install Package command
  2. Type GoToClass to find the package and press Enter

Usage

Press ⌘⇧P and use GoToClass commands:

  • Goto Class — will open “Goto Anything” with prefilled fully qualified PHP class name that's currently selected.
  • Goto Parent Class — will open “Goto Anything” with prefilled fully qualified parent PHP class name.
  • Goto Function — will open “Goto Anything” with prefilled text prefixed with @.
  • Goto Data — will open “Goto Anything” with prefilled text prefixed with #.

Key Bindings

Key bindings are no longer included in this package. To restore old key bindings open Preferences > Key Bindings and add the following settings:

MacOS

{ "keys": ["ctrl+super+o"], "command": "go_to_class" },
{ "keys": ["ctrl+super+shift+o"], "command": "go_to_fully_qualified_class" },
{ "keys": ["super+shift+o"], "command": "go_to_parent_class" },
{ "keys": ["super+shift+r"], "command": "go_to_function" },
{ "keys": ["super+shift+;"], "command": "go_to_data" }

Linux or Windows

{ "keys": ["ctrl+alt+o"], "command": "go_to_class" },
{ "keys": ["ctrl+alt+shift+o"], "command": "go_to_fully_qualified_class" },
{ "keys": ["ctrl+shift+o"], "command": "go_to_parent_class" },
{ "keys": ["ctrl+shift+r"], "command": "go_to_function" },
{ "keys": ["ctrl+shift+;"], "command": "go_to_data" }

Settings

Open Preferences > Package Settings > GoToClass.

class_separator _

This option is useful for old PHP projects only. Back in old days we used _ as a namespace separator. For example, Mage_Catalog_Model_Product was located in Mage/Catalog/Model/Product folder.