Zend Studio
- 25/02/2009
Zend Studio for Eclipse (6.1)
E ai galera everything good?
I spent a week working with Zend Studio for Eclipse to test. I particularly liked a lot. Of course I very strange because I never fit with the 'format Eclipse' work. But I made an effort to use it.
Well, things that I used and it does not have the Zend Studio 5.5 are:
- 'Go to Declaration "in variables;
- Refractor for files, classes, functions and variables;
- New PHP PHP Class and Interface;
- Ability to move the order of tabs;
- Generating Getters / Setter;
- Control 'To the' now sits on a bar to be able to 'end';
- List of Profiles that have been performed;
I'll 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 any class or function, you hold the CTRL key and clicked on the name. By doing this, you were redirected to the declaration of the class or function. Now in Zend Studio for Eclipse they implemented this functionality for variables as well.
See the example below, I have the variable $ return and want to get to your statement:
[UPDATE 02/27/2009]
A cool thing in this feature is that when we press CTRL and left mouse focus on a function call or class, a preview of it appears. 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, your entire project is updated ... ie all sites that have called for the class will be changed. This works for file names, classes, functions and variables.
See the video below, I will change the name of a function and all places where the function is called change.
(3) New PHP PHP Class and Interface
In the menu "File / New" (or right-clicking on the project folder) we have the options of New Class and New PHP PHP Interface. This is a screen so that the file has already created the structure, suppose we create a class called User. See pictures 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 classes that can extend;
- Interfaces: All interfaces that the class will implement;
- Constructor: Creates the constructor, if a class and extend it has 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 we mentioned, is to extend some class or implement any interface, the code is already complete.
(4) Move the order of tabs
For many people the order of the tabs to open files does not matter. But for me it is. I like to leave always very organized. In Zend Studio for Eclipse you can change the order of tabs. Just by clicking and dragging it to your new place. I think releasing a video to show heheheheh
Before
(5) Generating Getters / Setter
This option is used to generate the methods getAlgo () and setAlgo ().
For example, in class we created called the 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 sits on a bar to be able to 'end'
For those who do not know, "All" is a comment in the format used to PHPDoc you put things that have to do (to the English). Now in Zend Studio for Eclipse, the "Everybody's got a panel called Task's.
Just write ALL. See the image below:
(7) List of Profiles that have been carried
One thing I liked was that the Zend Studio for Eclipse every time you run a Profile of your code it saves in a list. I think it's very important to be able to compare the performance after some modification.
In Zend Studio 5.5, he just talked many times you ran the Profile.
See the image below:
In the example above, I ran the Profile with the normal code and then put a sleep (5), inside the method setName () and ran a new Profile. The difference is clear! Compare the gray lines that are on the right side of the screen (Execution Statistics tab).
Zend Studio for Eclipse has a lot more new things, but instantly these were the things that helped me.
I 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 any important tool, or fail to say something, please comment so we can exchange ideas.
A big hug!











5 Comments to "Zend Studio for Eclipse (6.1)"
I think I missed or do not know how to do the old Ctrl + D to duplicate a selection or line.
By Kin (1 comments) on 06/03/2009
Kra eh ... I was already planning on posting about this .. with your comment I wrote the Post.
http://marcelosabadini.com.br/blog/2009/03/07/zend-studio-for-eclipse-deixando-os-atalhos-no-formato-zend/
Abarca and thanks for stopping by my blog
By Marcelo Sabadini (101 comments) on 08/03/2009
Very good post more this could lead to new post on the 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 on it and I could not, did not have much experience, but in May was much more intuitive debugação if you can make a tutorial on setting up a project in June and debug files, thanks.
By Sandro (1 comments) on 22/04/2009