Zend Studio
- 25/02/2009
Zend Studio for Eclipse (6.1)
And then all good guys?
I spent a week working with Zend Studio for Eclipse to test. I particularly liked a lot. Of course I very surprised because I never adapted to the 'format Eclipse to work. But I made an effort to use it.
Well, the things that I used and which does not in Zend Studio 5.5 are:
- "Go to Declaration 'in the variables;
- Refractor for files, classes, functions and variables;
- New PHP Class and PHP Interface;
- Ability to move the order of the tabs;
- Generating Getters / Setter;
- Control 'To the' now is in a bar in order to 'end';
- List of Profiles that have been performed;
I will talk about each one separately.
(1) 'go to Declaration' in variables
In Zend Studio 5.5 when you wanted to go to the declaration of a class or function, you hold the CTRL key and click on the name. By doing this, you were redirected to the class declaration or function. Now in Zend Studio for Eclipse they implemented this feature to variables as well.
See the example below, I have the variable $ return and want to go to his statement:
[UPDATE 02/27/2009]
One nice thing about this feature is that when we press Ctrl and let the mouse hover over a function call or class, a preview of it is displayed. Vaja the image below:
[/ UPDATE]
(2) Refractor for files, classes, functions and variables
This option is very useful. When you change the name of a class, using Refractor, its plan is updated ... ie all sites that have called for the class will be changed. This works for filenames, classes, functions and variables.
See the video below, I'll change the name of a function and all places where the function is called change.
(3) New PHP Class and PHP Interface
In the menu "File / New" (or right-clicking on the folder of the project) we have the options of New New PHP Class and PHP Interface. This is a screen so that the file has already created the structure, suppose we create a class called User. See the images below:
As you can see, is very simple to create a class.
Some options:
- Class Name: Defines the class name, and file name is changed automatically;
- Superclass: It is to extend a class, if you click 'Browse' you will see all the classes that can extend;
- Interfaces: All interfaces that the class will implement;
- Constructor: Creates the builder, should extend a class and she's constructor, it will be called with parent:: __construct (); automatically
- Generate PHPDoc Blocks: It creates the structure of PHPDoc for you to put the comments;
At the end the result is:
As was said, to extend any class or implement some interface, the code is already complete.
(4) Move the order of tabs
For many people the order of tabs open with the files does not matter. But I care. I like to leave always very well organized. In Zend Studio for Eclipse can change the order of tabs. Just by clicking and dragging it to your new place. I think that needs a video to show hehehehehe
Before
(5) Generation Getters / Setters
This option is used to generate the methods getAlgo () and setAlgo ().
For example, we create the class called User will create some properties: $ name, $ email and $ site. Then we click on "Source / Generate Getters and Setters." See the video below:
(6) Control 'To the' now is in a bar in order to 'end'
For those who do not know, "All" is a comment in the format that suits you PHPDoc put the things that has to do (to the English). Now in Zend Studio for Eclipse, the "Everyone" s got a panel called Task's.
Just write ALL. See the picture below:
(7) List of Profiles that have been performed
One thing I really liked was that in Zend Studio for Eclipse every time you run a Profile of your code it saves in a list. I think it's important to be able to compare the performance after some modification.
In Zend Studio 5.5, it just spoke many times you ran the Profile.
See the picture below:
In the example above, I ran the Profile with the normal code and then put a sleep (5), within the setName () method, and performed a new Profile. The difference is clear! Compare the gray lines that are on the right side of the screen (tab Execution Statistics).
Zend Studio for Eclipse has a lot more new things, but once these were the things that helped me the most.
Hope you enjoyed! I personally will try to migrate to Zend for Eclipse.
If you have used this IDE and realized that I have not spoken in some important tool, or ceased to say something, please comment so we can exchange ideas.
A big hug!











5 Responses to "Zend Studio for Eclipse (6.1)"
I think I missed or do not know how the old CTRL + D to duplicate a selection or line.
For kin (1 comments) on 06/03/2009
For kra eh ... I was already thinking of posting about it .. with your comment I wrote the post.
Abarca and thanks for stopping by my blog
By Marcelo Sabadini (109 comments) on 08/03/2009
Very good post even this could create more post about the new zend because I'm starting to use it and I have some difficulties
For Junior (1 comments) on 31/03/2009
I tried to debug a script and did not get it, do not have much experience, but the 5 was much more intuitive debugação if you can make a tutorial on how to set up a project in 6 and debug files, thanks.
By Sandro (1 comments) on 22/04/2009