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 |
- 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 packageand hit Return. A list of available packages will be displayed. - Type
php completions kitand 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.
Provides PHP completions for Sublime Text的更多相关文章
- 使用 Sublime Text 2 开发 Unity3D 项目
用 Sublime 已经有很长一段时间,很舒适,很贴心,根本停不下来.之前因为是开发页游,所以是用 AS3 开发,近段时间,新开了个手游项目,引擎方面选定了 Unity3D,老实说,之前没有太多的 3 ...
- 翻译:打造基于Sublime Text 3的全能python开发环境
原文地址:https://realpython.com/blog/python/setting-up-sublime-text-3-for-full-stack-python-development/ ...
- 常用的sublime text插件(很爽哦)
个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...
- sublime text使用及常见问题
sublime text是一款非常不错的代码编辑器,体积小.界面漂亮.支持众多语言.插件丰富,且支持Windows.Mac.Linux几大平台. 官网:http://www.sublimetext.c ...
- Sublime Text 3的常用插件的安装和介绍
Sublime Text 3的插件安装流程 1.安装Sublime Text 3 2.Package Control组件在线安装: 按Ctrl+`或者点击View 下的show console调出co ...
- sublime text 使用小技巧
sublime下载各个版本 官网 插件官方网站地址 https://packagecontrol.io/ 一.安装设置字体及字体大小 1.点菜单“Preferences--->Setting - ...
- sublime text 前端开发插件安装和配置
前端开发sublimeconfig mac配置 此文件目录中文件主要是关于sublime的插件配置,快捷键配置,主题和字体配置. 插件列表 所有插件都可以使用Package Control安装,具体的 ...
- 常用的sublime text 3插件(很爽哦)
个人比较懒,平时喜欢用webstorm,但是因为webstorm打开实在太慢了,并且太看设备,所以本人编辑简单的文件依然会选择使用sublime,虽然网上有很多关于此类插件的分享了,但是感觉都是片段, ...
- sublime text插件推荐
time: 2016-05-23 13:00 --- 用了Sublime Text有一段时间了,之前被周围的几个前端小伙伴灌输的思想就是,牛b的前端程序员都是手写代码的,用代码提示啥的都low,然而上 ...
随机推荐
- C#写文本日志帮助类(支持多线程)
代码: using System; using System.Configuration; using System.IO; using System.Threading.Tasks; namespa ...
- HTTP请求中的Body构建——.NET客户端调用JAVA服务进行文件上传
PS:今日的第二篇,当日事还要当日毕:) http的POST请求发送的内容在Body中,因此有时候会有我们自己构建body的情况. JAVA使用http—post上传file时,spring框架中 ...
- 发现自己喜欢了移动端开发--Android
喜欢.net一直到现在了,但是自己做过的项目都不是让我自己很满意,不知道为什么,可能是自己的要求比较高吧! 下面自己记录自己的学习 src专门存放我们java源代码的包 Android 4.2.2存放 ...
- ActiveReports 报表应用教程 (6)---分组报表
在 ActiveReports 中可以设置单级分组.嵌套分组,同时,还可以使用表格.列表以及矩阵等数据区域控件对数据源进行分组操作.分组报表在商业报表系统中应用不胜枚举,客户信息归类统计表.商品分类统 ...
- sql 事务使用
BEGIN TRAN Tran_Money --开始事务 DECLARE @tran_error int; SET @tran_error = 0; BEGIN TRY UPDATE tb_Money ...
- 用linux遇到的一个死循环
1. 公司的服务器centos,需要通过vpn拨上去: 2. 然后ftp启用了tls加密: 3. 然后ubuntu 12.04 上libgnutls的版本比较新,装的filezilla 3.5.3,怎 ...
- SignalR-入门
1.什么是SignalR: ASP.NET SignalR是为简化开发开发人员将实时web内容添加到应用程序过程而提供的类库.实时web功能指的是让服务器代码可以随时主动推送内容给客户端,而不是让服务 ...
- 在Android设备上判断设备是否支持摄像头
private boolean hasCamera(){ boolean hasCamera=false; PackageManager pm=getActivity().getPackageMana ...
- Linux Shell系列教程之(十四) Shell Select教程
本文是Linux Shell系列教程的第(十四)篇,更多Linux Shell教程请看:Linux Shell系列教程 在上一篇文章:Linux Shell系列教程之(十三)Shell分支语句case ...
- T-SQL的回车和换行符(SQL)
T-SQL的回车和换行符(SQL) sql server中的回车换行字符是 char(13)+char(10) 回车:char(13) 换行:char(10) 实例1: DECLARE @c NVA ...