來源:
https://packagecontrol.io/packages/PHP%20Completions%20Kit
php-completions
php-completions plugin for Sublime Text. Provides decent PHP completions.
Overview
Features
- PHP ~5.6
- PSR compliant
- Scoped to minimise auto-complete noise
- Language constructs
- Compile-time constants
- Magic methods
- Constants
- Functions
-
Type hints e.g. begin typing at
class Name extends |
,function(|
,/* @var | */
, and any other scope where a type hint is valid.-
Exception type hints only e.g. begin typing at
try { } catch(|
-
Interface type hints only e.g. begin typing at
class name implements |
-
Instantiable classes only e.g. begin typing at
new |
-
Exception type hints only e.g. begin typing at
-
Supported extensions:
bcmath bz2 calendar Core ctype curl date dom ereg exif fileinfo filter ftp gd gettext hash iconv intl json libxml mbstring mcrypt mhash mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix readline Reflection session shmop SimpleXML soap sockets SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer wddx xdebug xml xmlreader xmlwriter Zend OPcache zip zlib
Key Bindings
OS X | Windows | Linux | Description |
---|---|---|---|
Ctrl + Space | Ctrl + Space | Alt + / | Activate completions |
To enable
tab-completions
set
"tab_completion": true
in
Preferences > Settings - User
.
Installation
Package Control installation
The preferred method of installation is via Package Control.
- Install Package Control
- From inside Sublime Text, open Package Control's Command Pallet: Ctrl + Shift + P (Windows, Linux) or Cmd + Shift + P on Mac.
-
Type
install package
and hit Return. A list of available packages will be displayed. -
Type
php completions kit
and hit Return. The package will be downloaded to the appropriate directory. - Restart Sublime Text to complete installation. The features listed above should now be available.
Manual installation
-
Download or clone this repository to a directory “php-completions” in the Sublime Text Packages directory for your platform:
-
Sublime Text 3
-
Linux:
git clone https://github.com/gerardroche/sublime-phpck.git ~/.config/sublime-text-3/Packages/php-completions
-
OS X:
git clone https://github.com/gerardroche/sublime-phpck.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/php-completions
-
Windows:
git clone https://github.com/gerardroche/sublime-phpck.git %APPDATA%\Sublime/ Text/ 3/Packages/php-completions
-
Linux:
-
Sublime Text 2
-
Linux:
git clone https://github.com/gerardroche/sublime-phpck.git ~/.config/sublime-text-2/Packages/php-completions
-
OS X:
git clone https://github.com/gerardroche/sublime-phpck.git ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/php-completions
-
Windows:
git clone https://github.com/gerardroche/sublime-phpck.git %APPDATA%\Sublime/ Text/ 2/Packages/php-completions
-
Linux:
-
Sublime Text 3
- Restart Sublime Text to complete installation. The features listed above should now be available.
Contributing
Issue reports and pull requests are always welcome.
Changelog
See CHANGELOG.md .
Complementary Plugins
License
php-completions is released under the BSD 3-Clause License .
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
