PHP learning path (1) to do things well, you must first sharpen the Zend configuration)

Source: Internet
Author: User
Tags word wrap
It has been more than a week since I personally transferred to PHP. I am familiar with simple syntax and can use PHP to implement CRUD. This is the first step, the feeling of PHP is probably the same as that of many people. It is simple and easy to use. Maybe you can use Dreamweaver, Notepad ++, or Editplus to complete your system.

It has been more than a week since I personally transferred to PHP. I am familiar with simple syntax and can use PHP to implement CRUD. This is the first step, the feeling of PHP is probably the same as that of many people. It is simple and easy to use. Maybe you can use Dreamweaver, Notepad ++, or Editplus to complete your system.

It has been more than a week since I personally transferred to PHP. I am familiar with simple syntax and can use PHP to implement CRUD. This is the first step, the feeling of PHP is probably the same as that of many people. It is simple and easy to use.

Maybe you can use Dreamweaver, Notepad ++, or Editplus to complete your system, but the so-called "to do good things, you must first sharpen the tool ", I think that a powerful IDE is still necessary for new users. Zend, recognized as the most advanced IDE by PHPer, naturally became my choice. The version I installed is 7.2.1, this article will introduce the transformation of this "new" tool, and leave a few questions for experts to solve.

1. Change the Zend working directory

2. Change Zend font

Go to Window -- Preferences -- General -- Appearance -- Colors and Fonts -- Basic -- Text Font in sequence to modify the parameter. I still like the 16th of the parameter LAS:

3. Change the default settings of the new document template.

By default, the automatically generated code for creating a PHP file is:

   

4. Modify the automatic prompt code speed

Zend is a chronic child, and the default code prompts that the delay is 500 milliseconds, obviously not in line with the Coder's impatient temper, therefore, choose Window> Preferences> PHP> Editor> Content Assist> Auto Activation and set the automatic code prompt speed to 500:

5. Create a template

There are already many templates in Zend. You can go to the above to modify the default new PHP file template, but it will inevitably not be enough, so we need to create a new template:

Note that newphp is selected in context, and the Template Name cannot be found during creation.

6. Change the shortcut key

This is similar to VS. I believe you may not be happy with the key positions of some shortcut keys. For example, Ctrl + K and C will be used as the shortcut keys for comments, this is obviously the work that can be completed by two hands. How can it get faster? So we will modify it, for example, to Ctrl + E, C, etc, in Zend, the block comment is Ctrl + Shift +/by default, and the block comment is Ctrl + Shift + \. To add or cancel a single line comment, Ctrl +/is switched by default /, I still don't want to operate it with two hands, so I can change it with a single line. The comment I changed is Ctrl + E, the block comment is Ctrl + R, and the block comment is Ctrl + G.

In addition, the debugging is changed from F11 to F5, from Ctrl + F11 to Ctrl + F5, from Step into F11 to F11, and from Step Over to F6.

You can enter "comment" and "debug" in the search box.

7. Install JSEclipse

JS prompts should be strong, while Zend itself comes with a little weak. The better option here is to Install the JSEclipse plug-in. We will go to Help-> Install newsoftware in turn.

There are two installation methods, one is to add the online installation address ghost.

The installation can be completed after the Next step ..

After installation, select JSEclipse as the default Javascript editor to use JSEclipse. Choose Window> Preferences> General> Editors> File Assocaitions:

Set "Default.

Similarly, the code prompt is faster:

The default value of the original "outline reparsing delay (MS)" is 500, and "Code Completion popup delay (MS)" is 200.

8. Window Layout

Use Alt + Shift + Q and V to call up the Variable Window to track the values of related variables during debugging.

In addition, the Debug and Debug OutPut windows can be called up to facilitate tracing and debugging.

You can also call up the PHP Function Window in Window -- Show View. You can take a look when you are too lazy to open the manual.

The final layout is similar to VS in order to see its smoothness. The following part can be minimized to increase the workspace.

9: Comments

When you add comments to a function in VS, three/s are input consecutively, so that you can add the Summary of the function. I thought this function was available in Zend, however, I found it in an accidental comment, that is, I typed/**, and then press enter to add comments to the function.

Well, the above is probably my transformation to Zend. I will leave a few things that I often use in VS, but I still haven't found implementation problems in Zend. I hope you can give me some advice:

1. In VS, I will set that all the files will be automatically wrapped, that is, when a line of code is not displayed, it will be displayed with a line break, rather than continuing to display, resulting in a horizontal scroll bar, in this way, code dragging affects the readability of the Code. Now I only find that there is a "Toggle Word Wrap" option right-click in the work area to display the current page with a line break, but no function setting is found to unify all lines of all files.

2. In addition, we often use the "go to definition" function, that is, right-click a function or variable and you can go to definition, then, it is transferred to the row defined by the function or variable. This is useful when there are many files, but it is not found in Zend.

3. Another common function is to input a function or variable. Zend will certainly prompt you. Well, if I accidentally click something else, such as hitting the touchpad, in this case, the intelligent prompt box will definitely disappear because of the mouse clicking, right? Is there any way to call the prompt box by pressing a key or something like that, you do not need to delete this half-coded function and input it from the beginning to display the prompt box. This is Ctrl + J in VS, but it is not found in Zend.

  

Author: Rocky Xiang
Source: http://www.cnblogs.com/RockyMyx/

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.