来源: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 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.

  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.

Provides PHP completions for Sublime Text的更多相关文章

  1. 使用 Sublime Text 2 开发 Unity3D 项目

    用 Sublime 已经有很长一段时间,很舒适,很贴心,根本停不下来.之前因为是开发页游,所以是用 AS3 开发,近段时间,新开了个手游项目,引擎方面选定了 Unity3D,老实说,之前没有太多的 3 ...

  2. 翻译:打造基于Sublime Text 3的全能python开发环境

    原文地址:https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/ ...

  3. 常用的sublime text插件(很爽哦)

    个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...

  4. sublime text使用及常见问题

    sublime text是一款非常不错的代码编辑器,体积小.界面漂亮.支持众多语言.插件丰富,且支持Windows.Mac.Linux几大平台. 官网:http://www.sublimetext.c ...

  5. Sublime Text 3的常用插件的安装和介绍

    Sublime Text 3的插件安装流程 1.安装Sublime Text 3 2.Package Control组件在线安装: 按Ctrl+`或者点击View 下的show console调出co ...

  6. sublime text 使用小技巧

    sublime下载各个版本 官网 插件官方网站地址 https://packagecontrol.io/ 一.安装设置字体及字体大小 1.点菜单“Preferences--->Setting - ...

  7. sublime text 前端开发插件安装和配置

    前端开发sublimeconfig mac配置 此文件目录中文件主要是关于sublime的插件配置,快捷键配置,主题和字体配置. 插件列表 所有插件都可以使用Package Control安装,具体的 ...

  8. 常用的sublime text 3插件(很爽哦)

    个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...

  9. sublime text插件推荐

    time: 2016-05-23 13:00 --- 用了Sublime Text有一段时间了,之前被周围的几个前端小伙伴灌输的思想就是,牛b的前端程序员都是手写代码的,用代码提示啥的都low,然而上 ...

随机推荐

  1. 点餐APP 冲刺二总结

       冲刺二我们小组主要是实现数据库的增删改查等功能, 因为小组成员对数据库都不是很熟悉,所以花了比较多 的时间去学习,功能实现起来也是很艰难,所以第二个 冲刺结束后我们的数据库还是有点问题,不能成功 ...

  2. myeclipse怎么github

    myeclipse怎么github 第一步.打开myeclipse->选择项目->鼠标右键->Team->Share project,将出现如下图所示: 第二步.选择git,在 ...

  3. PHP--正则表达式和样式匹配--小记

    正则表达式: Regular expression PHP 支持两种风格的函数: POSIX 风格的,有些低版本软件支持,目前高版本的有些已经废弃不用了,比如 zend studio 的较新版本. p ...

  4. LeetCode - Unique Binary Search Trees II

    题目: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. F ...

  5. jQuery $.extend() 和 $.fn.extend() 用法

    http://blog.csdn.net/xuemoyao/article/details/19021659

  6. 小型app开发的思路

    前提: 1. 性能不是最重要: 2. 人手少: 3. 速度要快: 结论: 1. 混合式 2. 减少app的复杂程度 3. 追求性能 (博客,尽量让自己每天写一点,短一点都可以)

  7. sqlite3之基本操作(二)

    作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明.谢谢! Python自带一个轻量级的关系型数据库SQLite.这一数据库使用SQL语言.S ...

  8. 面向企业客户的制造业CRM系统的不成熟思考

    CRM就是客户关系管理(Customer Relationship Management),一直一知半解,最近有涉及这方面的需求,所以稍作研究,并思考一些相关问题. CRM是什么? CRM具体如何定义 ...

  9. 【GPU编解码】GPU硬解码---CUVID

    问题描述:项目中,需要对高清监控视频分析处理,经测试,其解码过程所占CPU资源较多,导致整个系统处理效率不高,解码成为系统的瓶颈. 解决思路: 利用GPU解码高清视频,降低解码所占用CPU资源,加速解 ...

  10. QT分页控件,开源,供大家使用

    下载地址:http://files.cnblogs.com/dragonsuc/qt5.rar