Provides PHP completions for Sublime Text

来源: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 |
  • 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 XWindowsLinuxDescription
Ctrl+SpaceCtrl+SpaceAlt+/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.

  1. Install Package Control
  2. From inside Sublime Text, open Package Control's Command Pallet: Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P on Mac.
  3. Type install package and hit Return. A list of available packages will be displayed.
  4. Type php completions kit and hit Return. The package will be downloaded to the appropriate directory.
  5. Restart Sublime Text to complete installation. The features listed above should now be available.

Manual installation

  1. 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
    • 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
  2. 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.

转载于:https://www.cnblogs.com/thomaspha/p/4235423.html

Sublime Text是一款非常强大的文本编辑器,它有许多插件可以增强其功能。以下是一些常用的Sublime Text插件: 1. Anaconda插件:提供Python开发环境的自动补全、语法检查等功能。 2. SideBarEnhancements插件:增强侧边栏功能,包括复制、粘贴、重命名等操作。 3. DocBlockr_Python插件:用于自动生成Python代码的注释。 4. Color Picker插件:方便选择颜色并生成对应的代码。 5. Trailing Space插件:用于检测并删除行尾的空格。 6. JavaScript Completions插件:提供JavaScript代码的自动补全功能。 7. AdvancedNewFile插件:快速创建新文件或文件夹。 8. AutoFileName插件:自动补全文件路径。 9. SublimeLinter插件:提供代码语法检查和错误提示。 10. SublimeCodeIntel插件:提供代码自动补全和跳转功能。 11. SublimeREPL插件:在Sublime Text中运行交互式解释器。 12. SublimeTmpl插件:快速生成代码模板。 这些插件可以提升Sublime Text的功能和开发效率,你可以根据自己的需求选择安装使用。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* [Sublime Text常用插件汇总+常用快捷键](https://blog.csdn.net/weixin_42782150/article/details/121566707)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [20 个强大的 Sublime Text 插件](https://blog.csdn.net/whgggg/article/details/19028609)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Sublime Text 常用且比较实用的插件](https://blog.csdn.net/ww_5211314/article/details/126525070)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值