zend studio tips and tricks #zendcon 10
DESCRIPTION
In this presentation Roy Ganor, the Zend Studio Project Lead discloses some of Zend Studio's deepest secrets and reveal some of those extremely useful but 'hidden' features of Zend Studio.TRANSCRIPT
Roy Ganor | Zend Technologies
Zend Studio Tips and Tricks
http://joind.in/2266
• Mastering your IDE is as important as mastering your source code
• IDEs should be aware of your development workflows
Release Engineering Tools Short Keys
Project ManagementSource Editing
Short cuts are here!
ctrl
==
== shift
Short Cuts
+ + = Available short cutsctrl L
+ = Maximize editor/viewctrl M
+ = Quick access to workbenchctrl 3
+ = Switch between editorsctrl F6
+ + = Block selectionalt A
+ = Quick searchctrl K
+ = Delete current linectrl D
+ / = Previous/Next editoralt
+ / = Move line/salt
+ + = Comment Generatorctrl J
+ = Quick outlinectrl O
+ + = Open class / interfacectrl T
+ + = Toggle a breakpointctrl B
+ = Quick type hierarchyctrl T
+ + = Open function / methodctrl M
Source Editing
• 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
• 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
• 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
• 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
Refactoring – Extract variable/method
1. Select a valid expression
2. + + = Extract VariableAlt L
Code Navigation
Select a valid class / interface, method / function
+ + = Show referencesctrl G
+ + = Call hierarchyctrl alt H
Project Management
Project Management Tips
1. Separate back-end, front-end and tests projects
2. Exclude irrelevant resources from “build” folders
3. Use working Sets
Use you own Formatter
Task Repository Connectors
1. Bugzilla
2. Mantis
3. Trac
4. Attlasian
5. Tasktop
Remote Server Support
Build Tools (RelEng)
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>
Zend Studio BuildersAutomate code generation, templates and other stuff!
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
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/