Transcript
Page 1: Zend Studio Tips and Tricks #zendcon 10

Roy Ganor | Zend Technologies

Zend Studio Tips and Tricks

http://joind.in/2266

Page 2: Zend Studio Tips and Tricks #zendcon 10
Page 3: Zend Studio Tips and Tricks #zendcon 10

• Mastering your IDE is as important as mastering your source code

• IDEs should be aware of your development workflows

Page 4: Zend Studio Tips and Tricks #zendcon 10

Release Engineering Tools Short Keys

Project ManagementSource Editing

Page 5: Zend Studio Tips and Tricks #zendcon 10

Short cuts are here!

ctrl

==

== shift

Page 6: Zend Studio Tips and Tricks #zendcon 10

Short Cuts

Page 7: Zend Studio Tips and Tricks #zendcon 10

+ + = Available short cutsctrl L

+ = Maximize editor/viewctrl M

+ = Quick access to workbenchctrl 3

+ = Switch between editorsctrl F6

Page 8: Zend Studio Tips and Tricks #zendcon 10

+ + = Block selectionalt A

+ = Quick searchctrl K

+ = Delete current linectrl D

+ / = Previous/Next editoralt

+ / = Move line/salt

Page 9: Zend Studio Tips and Tricks #zendcon 10

+ + = Comment Generatorctrl J

+ = Quick outlinectrl O

+ + = Open class / interfacectrl T

+ + = Toggle a breakpointctrl B

+ = Quick type hierarchyctrl T

+ + = Open function / methodctrl M

Page 10: Zend Studio Tips and Tricks #zendcon 10

Source Editing

Page 11: Zend Studio Tips and Tricks #zendcon 10

• When a content assist proposal is selected, an automatic parameters completion is provided.

• Use Tab to skip between parameters

Content Assist Template Proposal

Altering parameters

Page 12: Zend Studio Tips and Tricks #zendcon 10

• The default color scheme is changed to provide a cleaner more standard editor colors.

• More rules are now available• Internal functions

• Deprecated elements

• Static variables

• And many more…

• Windows > Preferences > PHP > Editor > Syntax Coloring

Page 13: Zend Studio Tips and Tricks #zendcon 10

• When the quick outline is displayed, click on ctrl+o once again to list all inherited members of the class.

• Short-cut: ctrl+o (twice)

Show Inherited Members

Page 14: Zend Studio Tips and Tricks #zendcon 10

• When a breakpoint is hit, the Debug view opens. Step through the code, inspect and display variables and expressions

• Short-cut: ctrl+shift+i

New “Inspect” Action

Page 15: Zend Studio Tips and Tricks #zendcon 10

Refactoring – Extract variable/method

1. Select a valid expression

2. + + = Extract VariableAlt L

Page 16: Zend Studio Tips and Tricks #zendcon 10

Code Navigation

Select a valid class / interface, method / function

+ + = Show referencesctrl G

+ + = Call hierarchyctrl alt H

Page 17: Zend Studio Tips and Tricks #zendcon 10

Project Management

Page 18: Zend Studio Tips and Tricks #zendcon 10

Project Management Tips

1. Separate back-end, front-end and tests projects

2. Exclude irrelevant resources from “build” folders

3. Use working Sets

Page 19: Zend Studio Tips and Tricks #zendcon 10

Use you own Formatter

Page 20: Zend Studio Tips and Tricks #zendcon 10

Task Repository Connectors

1. Bugzilla

2. Mantis

3. Trac

4. Attlasian

5. Tasktop

Page 21: Zend Studio Tips and Tricks #zendcon 10

Remote Server Support

Page 22: Zend Studio Tips and Tricks #zendcon 10

Build Tools (RelEng)

Page 23: Zend Studio Tips and Tricks #zendcon 10

Team Project Set

1. File | Import | Team | Team Project Set

2. Import shared team resources and repositories

<?xml version="1.0" encoding="UTF-8"?><psf version="2.0"> <provider id="org.eclipse.team.cvs.core.cvsnature"> <project reference="1.0,:pserver:my.company.repo:/repos,module/project1"/> <project reference="1.0,:pserver:my.company.repo:/repos,module/project1"/> ... <project reference="1.0,:ext:oss.org:/cvsroot/ns,module/project,v200909160005"/> <project reference="1.0,:ext:oss.org:/cvsroot/ns,module/project,v200904131653"/> ... </provider> <workingSets ...> </workingSets><psf>

Page 24: Zend Studio Tips and Tricks #zendcon 10

Zend Studio BuildersAutomate code generation, templates and other stuff!

Page 25: Zend Studio Tips and Tricks #zendcon 10

Recap

• It’s more than just “tips and tricks”…

• Experienced teams improve their development processes

• by adding custom behavior to their tools

• More than 30 useful tips• Short Cuts

• Project Management tips

• Source Editing tips

• Release Engineering (Build Tools) tips

Page 26: Zend Studio Tips and Tricks #zendcon 10

Q&A

Roy Ganor – [email protected], @royganor, http://ganoro.blogspot.com/ Eclipse PDT forums - http://www.eclipse.org/forums/ Zend Studio forum - http://forums.zend.com/


Top Related