zend studio tips and tricks

Post on 06-May-2015

9.813 Views

Category:

Technology

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Zend Studio Tips and Tricks

By Roy Ganor

Eclipse PDT (PHP) & ATF (Ajax) Project Lead

Zend Studio Project Lead

3

Mastering your tools is as important as mastering your code

4

Release Engineering Tools

Short Keys

Project Management

Source Editing

5

Short cuts are here!

ctrl

==

==

shift

6

Short Cuts

7

+ + = Available short cutsctrl L

+ = Maximize editor/viewctrl M

+ = Quick access to workbench

ctrl 3

+ = Switch between editorsctrl F6

8

+ + = Block selectionalt A

+ = Quick searchctrl K

+ = Delete current linectrl D

+ / = Previous/Next editoralt

+ / = Move line/salt

9

+ + = Comment Generatorctrl J

+ = Quick outlinectrl O

+ + = Open class / interface

ctrl T

+ + = Toggle a breakpointctrl B

+ = Quick type hierarchyctrl T

+ + = Open function / methodctrl M

10

Source Editing

11

Code assist hints

12

Code assist CamelCase

13

Code assist – Magic functions

14

Refactoring – Extract variable/method

1. Select a valid expression

2. + + = Extract VariableAlt L

15

Code Navigation

Select a valid class / interface, method / function

+ + = Show referencesctrl G

+ + = Call hierarchyctrl alt H

16

Use mark occurrences

• Variables, methods and classes

• Inherited elements

• Exit paths

• Include statements

• Write vs. Read

17

CVS/SVN – Show annotation (blame mode)

Right click on the left-side annotation bar and select “Show Annotations”

18

Project Management

19

Project Management Tips

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

2. Exclude irrelevant resources from “build” folders

3. Use working Sets

20

Use you own Formatter

21

Task Repository Connectors

1. Bugzilla

2. Mantis

3. Trac

4. Attlasian

5. Tasktop

22

Build Tools (RelEng)

23

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>

24

Zend Studio Builders

• Automate code generation, templates and other stuff!

25

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

26

Q&A

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

top related