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, new PHP files are automatically generated.CodeIs:
<? PHP
Only this row can generate closed PHP labels when creating a PHP file, therefore, choose Window> preferences> php> editor> templates> New Simple PHP file to modify the file:
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/
The copyright of this article is shared by the author and the blog. You are welcome to repost it. Article Otherwise, the legal liability will be held accountable.