# 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.