Tips and Tricks coding with Zend Studio for Eclipse Part-1
Click here to load reader
-
date post
21-Oct-2014 -
Category
Technology
-
view
3.211 -
download
3
description
Transcript of Tips and Tricks coding with Zend Studio for Eclipse Part-1
![Page 1: Tips and Tricks coding with Zend Studio for Eclipse Part-1](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/1.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/2.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/3.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/4.jpg)
Zend Studio for Eclipse
![Page 5: Tips and Tricks coding with Zend Studio for Eclipse Part-1](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/5.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/6.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/7.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/8.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/9.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/10.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/11.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/12.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/13.jpg)
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](https://reader037.fdocuments.in/reader037/viewer/2022100414/544595f9afaf9fef2a8b45bd/html5/thumbnails/14.jpg)
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