zoukankan      html  css  js  c++  java
  • 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+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.

  • 相关阅读:
    C# post请求,Json转换实体类
    jq div 托拉拽
    json转换成实体类
    C# 队列、锁、异步
    关于C#调用protobuf 序列化和反序列化
    关于System.Data.Entity.Infrastructure.DbUpdateException 的问题
    C# 本地CSS和JS引用无问题,部署服务器之后出现500错误
    windows服务
    下拉加载更多DEMO(js实现)
    禁用iPhone手机浏览器上给电话号码自动加上的link样式
  • 原文地址:https://www.cnblogs.com/thomaspha/p/4235423.html
Copyright © 2011-2022 走看看