14

Click here to load reader

Tips and Tricks coding with Zend Studio for Eclipse Part-1

  • View
    3.211

  • Download
    3

Embed Size (px)

DESCRIPTION

A webinar on 'Tips and Tricks coding with Zend Studio for Eclipse Part -1' by Peter B. MacIntyre, ZCE

Citation preview

Page 1: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Tips and Tricks coding with Zend Studio for Eclipse

Part 1

Hosted by:Peter B. MacIntyre, ZCE

Page 2: Tips and Tricks coding with Zend Studio for Eclipse Part-1

About Me• Over 20 years in the IT Industry• Wrote “PHP: The Good Parts” - O’Reilly

Press

• Co-authored:• “Programming PHP 2nd Ed.” - O’Reilly Press• “Zend Studio for Eclipse Developer’s Guide” –

Addison-Wesley

• Tech Edited 10+ IT Books• Wrote Whitepaper for Zend on Team

Development within Zend Studio• Working on a PHP Book for APress• Live in PEI, Canada

Page 3: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Zend Studio for Eclipse• Introduction to IDE interfaceo Views – a window tab for a specific purposeo Perspectives – collection of views for an overall

tasko Project concepts – collection of files /

resources needed to produce a producto Preferences / settings – the way to control

your IDE environment.

Page 4: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Zend Studio for Eclipse

Page 5: Tips and Tricks coding with Zend Studio for Eclipse Part-1

The PHP Perspective• Stock Perspective

• Views involvedo PHP Explorer (Project View)o Type Hierarchyo Outlineo Problemso Taskso Consoleo Code Editor(s)

Page 6: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Code Folding

• Code Foldingo Collapses known trusted code out of the visual view so

that you can concentrate on other sections of codeo Works on Classes, Methods, Functions, some HTML

element groups and PHPDoc Comment blockso Controlled by: Preferences->PHP->Editor->Code

Folding

Page 7: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Code Formatting

• Code Formattingo Allows you to format your code in the editor according

to a pre-set patterno Controlled by: Preferences->PHP->Code Style-

>Formatter

Page 8: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Code Linking & Syntax Coloring

• Link files with Editoro Connects the Editor in focus with its location in the

Project list

• Syntax Coloringo Allows you to customize the code editor how you want.o Preferences->PHP->Editor->Syntax Coloring

Page 9: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Marker Bar• Vertical Strip to the left of line

numberso Set breakpoints (double-click)o Set Bookmarkso Displays Syntax errorso Signifies code related tasks //TODOo Shows range of code block (Functions, Methods)

Page 10: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Problems View• Tracks Syntax errors and warnings• Tracks across multiple files• Double-click on the problem takes you to the

file and the line of code where the issue is suspected to exist

Page 11: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Tasks View• Assign yourself something to do• Can be directly linked to code• Has 3 severity levels (High, Normal, Low)• Can be triggered directly in the code: //TODO• You can create your own task handles and

severity levels• Preferences->PHP->Editor->Task Tags

Page 12: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Outline View• Shows break down of code file in focus

– Breaks down functions, classes, methods, properties, and variables (file-wide context)

• Can be very helpful in navigating in a large file• Sorts elements alphabetically if desired• Can even filter the view to reduce clutter

Page 13: Tips and Tricks coding with Zend Studio for Eclipse Part-1

Short Snappers• Ctrl + Down Arrow – Duplicates the current line of

code• Ctrl + Space – brings up detailed code assist• Ctrl + Shift + space - when inside a function call will

bring up the expected parameters list• If code does not seem to “act” like a PHP file within

editor – check project -> configure to ensure PHP support is turned on

Page 14: Tips and Tricks coding with Zend Studio for Eclipse Part-1

FOR MORE INFORMATION VISIT HTTP://OSSCUBE.COMOR DROP-IN AN EMAIL TO [email protected]

Thank you for your Time and Attention!Reminder Part 2 of this webinar is on June 27th