Short Snappers Ctrl + Down Arrow – Duplicates the current line of code (custom setting – re-mapped ctrl+alt+down) 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 Ctrl + / toggles comments on and off įOR MORE INFORMATION VISIT HTTP://OSSCUBE.Zend Studio is an advanced Integrated Development Environment for PC specifically designed to address the needs of the professional PHP developer. Preferences Goodies (2) Settings in the Tasks View Tasks View -> Context Menu -> Preferences Code Templates (new PHP file) Preferences -> PHP -> Code Style -> Code Templates Preferences Goodies Key Mapping Preferences -> General -> Keys Code Error Notifications Preferences -> PHP -> Symantic Analysis Properties Content Assist Settings Preferences -> -> PHP -> Editor -> Content Assist Mark Occurrences Preferences -> PHP -> Editor -> Mark Occurrences Choose the portions that you want to include, name the Set and turn it “on”. Working Sets Used to reduce project listing clutter Established by selecting the context menu in the PHP Explorer view.
PHP Code Gallery Meant to share common code portions within a team or with Zend Preferences -> PHP -> Code Gallery (not well documented) Code Gallery View To gain access to Zend’s Code Gallery, login with your account Suggest to Zend’s Code Gallery Not well done in Studio, needs work and documentation
PHPDoc Revisited Generation of reference documentation Project menu -> Generate PHPDoc (alt + d) Allows you create full reference documentation in HTML, XML DocBook, or PDF formats Properties View Properties View is mostly for HTML tags Shows you all the attributes of a given tag Allows you to change code by updating the values in the view (and vice versa) F3 will take you to the code definition reference
PHPDoc Entries Useful tags: – who wrote / updated the code – parameters expected by the element – the return value of the element More on this tool later in the webinar Ĭonnecting Dependent Projects Allows Studio to help with code integration Right-mouse on project, select properties Pick PHP Include Path -> Projects Select other projects (OOP Libs, 3 rd Party libs) Code Editor will now add in any classes, functions in those projects to the code assist. PHPDoc Entries Great way to document your classes, methods and functions Triggered by /** in the editor /** above element to be documented, then press enter Right-mouse on element name in Outline view and select source -> Generate Element Comment MacIntyre, ZCEĪbout Me Over 20 years in the IT Industry Wrote “PHP: The Good Parts” - O’Reilly Press Co-authored: “ Programming PHP 2 nd 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 Tips and Tricks coding with Zend Studio for Eclipse Part 2 Hosted by: Peter B. Tips and Tricks coding with Zend Studio for Eclipse Part - 2