Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erichard/sublimectagsphp
A Sublime Text 2 plugin that use CTag for cool PHP programming
https://github.com/erichard/sublimectagsphp
Last synced: 3 months ago
JSON representation
A Sublime Text 2 plugin that use CTag for cool PHP programming
- Host: GitHub
- URL: https://github.com/erichard/sublimectagsphp
- Owner: erichard
- Created: 2012-03-25T01:22:29.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-14T09:28:05.000Z (almost 12 years ago)
- Last Synced: 2023-03-22T13:35:15.055Z (almost 2 years ago)
- Language: Python
- Homepage:
- Size: 179 KB
- Stars: 18
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](https://github.com/erichard/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.