Sublime PHP Plugin

Source: Internet
Author: User
Tags sublime text

1. The Package Control

Get Package Control here.

2. Theme-phoenix and Flatland (flat)

If Sublime Text 2 is a highly tuned race car and then this plugin are the flashy body work (that also provides to force.) This theme does some minor UI tweaks to the standard Sublime Text layout and lets are configure some things like the tab w Idth. The best feature would being has the folder tree, look, well, like a folder tree. Those little triangles were getting on my nerves!

Details on the Phoenix Theme.

3, Sublimecodeintel

Sublime The default code hints can only prompt system functions, the user creates their own functions, classes cannot be prompted. If you want to prompt yourself to establish a function. You can install the Sublimecodeintel plugin.

Sublimecodeintel configuration required after installation, file: Add-ons directory/.codeintel/config

    1. "PHP": {
    2. "PHP": ' D:\SaeServer\php\php.exe ',
    3. "Phpextrapaths": [' D:\SaeServer\php\stdlib '],
    4. "Phpconfigfile": ' D:\SaeServer\apache\php.ini '
    5. },


Configure the PHP executable file address, PHP configuration file address, Phpextrapaths is additional code hint of the class library, in addition to the current project PHP code can be prompted outside the phpextrapaths defined in the directory PHP code can also prompt. D:\SaeServer\php\stdlib is the directory of the SAE local simulation files in Saeserver, so there is a hint of the SAE code wherever it is configured.

After installing Sublimecodeintel, press ALT + left mouse button to jump to the function declaration as well as Ctags. But if you have two files that declare a function of the same name, Sublimecodeintel will only jump to the first found function, and ctags will let you choose which file to jump to. So we generally still use the ctags jump function.

4,sublimelint and Phpcs

Sublimeint requires the system to have PHP commands. So you need to set the environment variables of PHP. Sublimelint syntax error hints are displayed on the status bar, so be careful to look at the status bar when writing a program. The syntax error of PHPCS is that when we save the file, the Universal panel displays the error, Sublimelint's error prompt is real-time but not obvious. Phpcs error hints are not real-time, but they are obvious. So we generally have to install both plugins.

Phpcs In addition to the code hint of the total, there are other features, but I do not understand the other features how to use, we can go to study, if you know how to use and tell me again.

5,goto document.

This plugin can help us to quickly view manuals. For example, when we write PHP code, suddenly forget how a function, put the mouse on the function, and then press F1, it can quickly open the PHP manual to explain the function of the place.
After installing the Goto document plugin, we then configure the shortcut key F1 to jump to the document. Open the Sublime menu bar Preferences->key bindings-user set shortcut keys:

    1. [
    2. {"Keys": ["F1"], "command": "Goto_documentation"}
    3. ]

Once this is set, press F1 to jump to the document.

6,function name display.

This plugin can display the current cursor in which function in the status bar.

7 gist. when we build HTML files, we do some of the same code. At this time we like to have a code template, cannot write duplicate the same code, Gits plug-in can implement the function of code template. It can see the code templates that we created ourselves, and the code snippets remain under gist in GitHub. Http://lucifr.com/2012/03/07/sub. al-snippet-manager/the detailed usage is described here.

8,additional PHP Snippet and Docblockr code comment formatting.

Additional PHP snippet plugin can prompt phpdocument format code, but also can quickly output open source protocol, input php-will be prompted
Install the Docblockr plugin to form a comment block. Do not use a slash or an asterisk every time you tap a comment.

9 Brackethighlighter

Enhancements to paired matches. Like these symbols are paired: curly braces {}, brackets [], brackets: (), quotation marks "" and so on. These symbols when we put the mouse at the beginning of the position of the symbol, we hope to see clearly where the end of the symbol where the sublime default is underlined, it is not obvious, want to be obvious,

Terminal

Xdebug Client

PHP Namespace Command

Sublime PHP plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.