Click here to load reader
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
Tips and Tricks coding with Zend Studio for Eclipse
Part 1
Hosted by:Peter B. MacIntyre, ZCE
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
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.
Zend Studio for Eclipse
The PHP Perspective• Stock Perspective
• Views involvedo PHP Explorer (Project View)o Type Hierarchyo Outlineo Problemso Taskso Consoleo Code Editor(s)
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
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
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
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)
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
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
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
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
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