Zend Studio Practical Shortcuts Checklist (meticulously organized) _php tips

Source: Internet
Author: User
Tags zend

Note: This article omits the "General shortcut key" description, such as: ctrl+n= New, ctrl+o= Open, ctrl+c= copy, ctrl+v,ctrl+x ... And so on almost all software is a set of shortcut keys, and focus on zde unique shortcuts, understanding and flexible use of these shortcuts, will certainly help you in the actual project operations more easily. (How to write more think I am doing game cheats, haha!) )

editing features
Key Combinations Implementation features Applicable conditions
ctrl+/ Single-line comment. When you are currently in PHP code, adds a double slash line comment to the row where the cursor is positioned, selects multiple rows, adds a double slash to each row, and adds <!----> comments before and after the line when the code is HTML, and selects multiple rows to add <!----> comments before and after the selection, instead of adding each row PHP code, HTML code all applicable, not for the CSS section
ctrl+shift+/ Block annotation, add a block annotation for the selected PHP code, or add a block annotation to the row where the cursor is located if no code is selected PHP code is applicable to HTML code with the same functionality as ctrl+/
Ctrl+u The selected code fragment is all converted to uppercase PHP, HTML, etc. are applicable
Ctrl+l The selected code fragment is all converted to lowercase PHP, HTML, etc. are applicable
Ctrl+d Copy the cursor in the row All Code applies
Ctrl+e Delete the cursor in the row All Code applies
Tab/shift+tab Press TAB to increase code indentation, default to 4 spaces, set in preferences, and shift+tab to reduce indentation, which is also valid for multiline operations. That is, multiple lines increase/decrease indents at the same time. All Code applies
Ctrl+alt+f Find in file, open Find in Files dialog box The entire ZDE environment is applicable
Ctrl+backspace Delete a word before the cursor, or a symbol, note that the "one word" here is understood by Zde and has a certain discrepancy with a word in English. All Code applies
Ctrl+g Go to the line. Opens the Go To Row dialog box, fills in the line number to go to the corresponding row, this is the general shortcut key The entire ZDE environment is applicable
alt+→,← The right arrow is positioned to the next position in the cursor, and the left arrow is positioned to the previous position of the cursor. The entire ZDE environment is applicable

Environment switching
Key Combinations Implementation features Applicable conditions
Esc Hide the secondary window so that the editing area is the largest, while the File Manager window does not hide The entire ZDE environment is applicable
Ctrl+w Toggles the wrapping, that is, whether the horizontal scroll bar appears when the code is very long
Ctrl+tab Switch between individual editor tabs, or you can describe switching between multiple open file windows
Ctrl+f4 Close the current tab page, ALT+F4 is off the entire ZDE environment, notice the difference

HTML markup
Key Combinations Implementation features Applicable conditions
ctrl+1,2,3 Add a pair of All Code Sections
Ctrl+enter Line breaks, that is, produces a <br/> tag, where attention Zde automatically generated for <br> tags, does not conform to web standards
ctrl+~ Space is a note: ~ key is located on the left of PC keyboard number 1, above the TAB key
Ctrl+b Bold, creating a pair of <b> tags, web standards seem to promote the use of <strong></strong>
Alt+i Italic, producing a pair of <i> tags

Bookmark action
Key Combinations Implementation features Applicable conditions
F2 Add/Remove Bookmarks All Code Sections
Ctrl+f2 Jumps to the next bookmark in the current file
Alt+f2 Toggle between all bookmarks in the current project
Ctrl+shift+f2 Delete all bookmarks
Ctrl+shift+m Show Bookmarks dialog box

Zend Studio Debug shortcut keys list
Key Combinations Implementation features Applicable conditions
F9 Add/Remove Breakpoints All Code Sections
F10 Process-by-step. Step through the debug file to the next line
F5 Begin execution. Executes the debug file until a breakpoint is encountered.
F8 The Debug URL. Open the Debug URL dialog box
F12 The profile URL. Open Profile URL dialog box
Shift+f8 Add a watch point. To open the Add Monitor Point dialog box
Shift+f11 Jump. Step to the first line of execution after return
F11 by statement. Step to the next executed line
Shift+f10 Executes to the cursor line. Executes the code to the line where the cursor is located.
Ctrl+f5 Non-disruptive execution scripts
Shift+f5 Stop Debugger
Ctrl+alt+b Display in Browser

Note: Debugging shortcuts are only used when debugging code, and will be explained in detail in subsequent tutorials on how to debug scripts in Zend Studio and how to build a debug server.
Resources:
E-Magazine "Phper" sixth article "Zend studio--writing PHP code tool"
Zend Studio Help Documentation

Two, Zend shortcut key combination

Edit function key to achieve the application of functional conditions
ctrl+/single-line comment. When you are currently in PHP code, adds a double slash line comment to the row where the cursor is positioned, selects multiple rows, adds a double slash to each row, and adds <!----> comments before and after the line when the code is HTML, and selects multiple rows to add <!----> comments before and after the selection, instead of adding each row PHP code, HTML code all applicable, not for the CSS section
ctrl+shift+/block Annotation, add/*/block Comment for selected PHP code, if no code is selected, add a block annotation to the line where the cursor is located the PHP code is applicable and the HTML code functions the same as the ctrl+/
Ctrl+u selected code snippets are all converted to uppercase PHP, HTML, etc.
Ctrl+l selected code snippets are all converted to lowercase php, HTML, etc.
Ctrl+d copy cursor line all code applies
Ctrl+e Delete cursor line all code is applicable
Tab/shift+tab Press Tab to increase code indentation, the default is 4 spaces, you can set in preferences, shift+tab reduce indentation, this operation is also valid for multiline operation. That is, multiple lines increase/decrease indents at the same time. All Code applies
Ctrl+alt+f Find in Files, open the Find in Files dialog box applies to the entire ZDE environment
Ctrl+backspace Delete a word before the cursor, or a symbol, note that here "one word" is understood by the Zde, and the English word has a certain access to all the code is applicable
Ctrl+g go to the line. Open the Go To Row dialog box, fill in the line number to go to the appropriate line, this is the general shortcut key the entire ZDE environment applies
The alt+→,← right arrow is positioned to the next position in the cursor, and the left arrow is positioned to the previous position of the cursor. The entire ZDE environment is applicable

Application of environment switch combination key to implement the function
ESC hides the secondary window so that the editing area is the largest, while the File Manager window does not hide the entire zde environment.
Ctrl+w Toggle Line Wrap, that is, if the code is too long to appear when the horizontal scroll bar
Ctrl+tab switches between individual editor tabs, or it can be described as switching between multiple open file windows
CTRL+F4 Closes the current tab page, ALT+F4 is closing the entire ZDE environment, notice the difference

HTML tag key combination implements the functional conditions
ctrl+1,2,3 add a pair of Ctrl+enter line break, that is, to produce a <br/> label, here note Zde automatically generated for <br> label, does not conform to web standards
Ctrl+~ space is a note: ~ key is located on PC keyboard number 1 on the Left, TAB key above
Ctrl+b Bold, produces a pair of <b> tags, web standards seem to promote the use of <strong></strong>
Alt+i Italic, produces a pair of <i> tags

Bookmark Operation key combination to achieve the applicable conditions of function
F2 Add/Remove bookmarks all parts of code
Ctrl+f2 jumps to the next bookmark in the current file
ALT+F2 toggle between all bookmarks in the current project
CTRL+SHIFT+F2 Delete all bookmarks
Ctrl+shift+m Display Bookmark dialog box

Zend Studio Debug Shortcut list key combination implementation conditions
F9 Add/Remove breakpoints all parts of code
F10 process. Step through the debug file to the next line
F5 started execution. Executes the debug file until a breakpoint is encountered.
F8 Debug URL. Open the Debug URL dialog box
F12 profile URL. Open Profile URL dialog box
Shift+f8 add a watch point. To open the Add Monitor Point dialog box
Shift+f11 jumped out. Step to the first line of execution after return
F11-by-statement. Step to the next executed line
SHIFT+F10 executes to the cursor line. Executes the code to the line where the cursor is located.
Ctrl+f5 execution scripts without interruption
Shift+f5 Stop Debugger
Ctrl+alt+b is displayed in the browser

Three

I have been using Zend Studio for PHP development, if you can grasp the shortcut keys, and can use the habit, then indeed can improve the efficiency of a lot of development, here I share with you.

The first is the shortcut key to the Edit function
Ctrl + D If you have selected, copy and paste the selected section directly, and if you do not select it, copy the line where you have the cursor, and the copy does not enter the system's pasteboard.
Ctrl + E Clear Line
Ctrl + space Generally this key is the input method to screen out, its function is to display code completion

The following is the shortcut key to the Code collection
Ctrl + Shift + 1 Close all non-PHP parts
Ctrl + Shift + 2 Close all classes
Ctrl + Shift + 3 put all the functions away
Ctrl + Shift + 4 put up all the annotation parts/*/
Ctrl + Shift + E Expand all parts
Ctrl + Shift + C close all expanded parts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.