CTags for PHP
A Sublime Text 2 plugin that use CTag for cool PHP programming
Details
Installs
- Total 19K
- Win 11K
- Mac 4K
- Linux 4K
Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 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 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime CTags PHP
This Sublime Text 2 Package provides cool stuff for PHP 5.3+ coding session.
Sublime Text 3 support
This plugin will NOT work in Sublime Text 3 !
I've made a new plugin which use the built-in index instead of ctags. Take a look at SublimePHPCompanion. This new plugin is even better as it sort the use in your classes.
Dependency
Obviously, you NEED the CTags plugin for Sublime Text 2.
- https://github.com/SublimeText/CTags
- Via package control (search for ctag)
Installation
Search ctagphp
in package control and you have done !
Or clone this repo in your Sublime Text 2 Package dir.
$ git clone https://github.com/erichard/SublimeCTagsPHP
Features
Two AWESOME features for the moment !
import_use
The first one is 'import use statement'. Just bring your cursor hover a class name, hit the F5 key (default but customizable) and that's it.
Based on the current file content, the use statement could be added in :
- Below the last use statement
- Below the namespace statement (with an empty line between both)
- Below the php opening tag (with an empty line between both)
import_namespace
Just hit the F4 key, it will add the namespace definition based on the absolute filename of the current file. I use a simple trick to determine where the namespace begun, actually the namespace will start at the first CamelCased folder.
If a namespace is already declared, the command will shout how crazy you are in the status bar.
Warning: This feature require a filename so the command won't work in an unsaved buffer.