The following is a handy shortcut for ZendStudio. Very useful! For more information, see <g id = "1"> general shortcut key description </g>. for example, ctrl + N = new, ctrl + O = open, and ctrl + C = copy, ctrl + V, ctrl + X ...... And so on. it focuses on the unique shortcut keys of zde. after learning about and using these shortcut keys flexibly, it will certainly help you more easily in actual project operations. (Why do you think that I am playing a game? haha !)
Editing
Key combination |
Implement functions |
Applicable conditions |
Ctrl +/ |
Single line comment. When the current php code is used, add the double slash line comment in the row where the cursor is located. if multiple lines are selected, add the double slash in each line. when the code is html, add the double slash before and after the line. Comment: select multiple rows and add them before and after the constituency Comment instead of adding lines |
PHP code and html code are all applicable and not applicable to the CSS section. |
Ctrl + Shift +/ |
Block comments: add block comments to the selected PHP code. If no code is selected, ADd block comments to the row where the cursor is located. |
PHP code is applicable. the Function of HTML code is the same as that of Ctrl + /. |
Ctrl + U |
All selected code snippets are converted to uppercase |
Applicable to php, html, etc. |
Ctrl + L |
All selected code snippets are converted to lowercase letters. |
Applicable to php, html, etc. |
Ctrl + D |
Copy the row where the cursor is located |
Applicable to all codes |
Ctrl + E |
Delete the row where the cursor is located |
Applicable to all codes |
Tab/Shift + Tab |
Press tab to add code indent. the default value is 4 spaces. you can set it in preferences. Shift + Tab reduces indentation. this operation is equally effective for multiple lines. That is, multiple rows increase/decrease indentation at the same time. |
Applicable to all codes |
Ctrl + Alt + F |
Search for files. the "search for files" dialog box is displayed. |
Applicable to the entire ZDE environment |
Ctrl + BackSpace |
Delete the word before the cursor or a symbol. Note that ZDE understands the word here, which is different from the word in English. |
Applicable to all codes |
Ctrl + G |
To the row. Open the go to line dialog box, enter the number of rows to go to the corresponding line, this is a general shortcut |
Applicable to the entire ZDE environment |
Alt + →, ↓ |
The right arrow is to locate the next position of the cursor, and the left arrow is to locate the previous position of the cursor. |
Applicable to the entire ZDE environment |
Environment switch
Key combination |
Implement functions |
Applicable conditions |
Esc |
Hide the auxiliary window to maximize the editing area, while the file manager window is not hidden. |
Applicable to the entire ZDE environment |
Ctrl + W |
Switch to automatic line feed, that is, whether a horizontal scroll bar appears when the code is too long |
Ctrl + Tab |
Switch between different editor tabs. It can also be described as switching between multiple open file windows. |
Ctrl + F4 |
Close the current tab. Alt + F4 disables the entire ZDE environment. |
HTML tag
Key combination |
Implement functions |
Applicable conditions |
Ctrl + 1, 2, 3 |
Add a pair of, html tags, |
All code sections |
Ctrl + Enter |
Line breaks generate Label. Note that ZDE automatically generates Tag, not compliant with web standards |
Ctrl + ~ |
A space is a note :~ The key is on the left side of the number 1 on the PC keyboard, and on the top of the tab key |
Ctrl + B |
Bold to generate a pairTags, web standards seem to advocate use |
Alt + I |
Italic, generate a pairTag |
Bookmarks
Key combination |
Implement functions |
Applicable conditions |
F2 |
Add/delete bookmarks |
All code sections |
Ctrl + F2 |
Jump to the next bookmarks of the current file |
Alt + F2 |
Switch between all bookmarks of the current project |
Ctrl + Shift + F2 |
Delete All Bookmarks |
Ctrl + Shift + M |
Show Bookmarks dialog box |
Zend Studio debugging shortcut list
Key combination |
Implement functions |
Applicable conditions |
F9 |
Add/delete breakpoints |
All code sections |
F10 |
Process by process. Execute the debugging file in one step to the next line |
F5 |
Start execution. Execute the debugging file until a breakpoint occurs. |
F8 |
Debug URL. Open the debug URL dialog box |
F12 |
The URL of the profile. Open profile URL dialog box |
Shift + F8 |
Add a monitoring site. Open the add monitoring point dialog box |
Shift + F11 |
Jump out. The first line after the result is returned after one-step execution. |
F11 |
Statement by statement. One-Step execution to the next row to be executed |
Shift + F10 |
Execute to the cursor line. Execute the code to the row where the cursor is located. |
Ctrl + F5 |
Uninterrupted execution script |
Shift + F5 |
Stop debugger |
Ctrl + Alt + B |
Display in the browser |
Note: The debugging shortcut key is used only when debugging the code. for details about how to debug the script in Zend Studio and how to set up a debugging server, see the subsequent tutorials.
References:
E-Magazine PHPer Article 6 Zend Studio-powerful tool for compiling PHP code
Zend studio help document
II. zend shortcut key combination
Edit the function combo key to enable the function
Ctrl +/comment on a single row. When the current php code is used, add the double slash line comment in the row where the cursor is located. if multiple lines are selected, add the double slash in each line. when the code is html, add the double slash before and after the line. Comment: select multiple rows and add them before and after the constituency Comments, rather than adding PHP code and html code to each line are all applicable, not applicable to the CSS section.
Ctrl + Shift +/block comments: Add/**/block comments to the selected PHP code. If no code is selected, add the block comments to the row where the cursor is located. The PHP code applies, the function of HTML code is the same as that of Ctrl + /.
All code snippets selected by Ctrl + U are converted to uppercase php and html.
All code snippets selected by Ctrl + L are converted to lower-case php and html.
Ctrl + D copy the row where the cursor is located. all codes apply.
Ctrl + E delete the row where the cursor is located. all codes apply.
Tab/Shift + Tab: Press tab to add code indentation. the default value is 4 spaces. you can set it in preferences. Shift + Tab reduces indentation, this operation is also valid for multiple rows. That is, multiple rows increase/decrease indentation at the same time. Applicable to all codes
Ctrl + Alt + F search in the file, open the "search in file" dialog box, the entire ZDE environment applies
Ctrl + BackSpace delete the word or a symbol before the cursor. Note that the word "one word" here is self-understood by ZDE. it must be different from one word in English. all codes are applicable.
Ctrl + G to the row. Open the go to line dialog box and enter a number to go to the corresponding line. this is applicable to the entire ZDE environment.
Alt + → the right arrow of the cursor is to locate the next position of the cursor, and the left arrow is to locate the previous position of the cursor. Applicable to the entire ZDE environment
Applicable conditions for environment switch key combinations
Esc hides the secondary window to maximize the editing area, while the file manager window does not hide the entire ZDE environment.
Ctrl + W switch to automatic line feed, that is, whether a horizontal scroll bar appears when the code is too long
Ctrl + Tab switch between each editor Tab, which can also be described as switching between multiple open file windows
Ctrl + F4 close the current tab, and Alt + F4 close the entire ZDE environment.
Applicable conditions for HTML tag key combination implementation
Ctrl + 1, 2, 3 add one, html tags respectively, all code sections
Ctrl + Enter
Label. Note that ZDE automatically generates
Tag, not compliant with web standards
Ctrl + ~ A space is a note :~ The key is on the left side of the number 1 on the PC keyboard, and on the top of the tab key
Ctrl + B in bold to generate a pairTags, web standards seem to advocate use
Alt + I italic, generate a pairTag
Applicable conditions for the bookmarked operation combo key implementation function
F2 add/delete all code parts of bookmarks
Ctrl + F2 jump to the next bookmarks of the current file
Alt + F2 switch between all bookmarks of the current project
Ctrl + Shift + F2 Delete All Bookmarks
Ctrl + Shift + M show bookmarks dialog box
Zend Studio
F9 add/delete all code parts of a breakpoint
F10 process by process. Execute the debugging file in one step to the next line
F5 starts execution. Execute the debugging file until a breakpoint occurs.
F8 debugging URL. Open the debug URL dialog box
F12 profile URL. Open profile URL dialog box
Shift + F8 add monitoring points. Open the add monitoring point dialog box
Shift + F11 jump out. The first line after the result is returned after one-step execution.
F11 statement by statement. One-Step execution to the next row to be executed
Shift + F10: execute to the cursor line. Execute the code to the row where the cursor is located.
Ctrl + F5 execution script without interruption
Shift + F5 stop debugger
Ctrl + Alt + B display in the browser
III,
I have been using Zend Studio for PHP Development. if I can master the shortcut keys and get used to them, it can indeed improve the development efficiency. here I will share it with you.
The first is the shortcut key for the editing function.
Ctrl + D if you select, copy and paste the selected Part. if you do not select the selected part, copy the row where your cursor is located, in addition, such replication does not enter the system clipboard.
Ctrl + E clear a line
Ctrl + Space this key is usually blocked by the input method. its function is to display the code completion.
Below are the shortcut keys for code display
Ctrl + Shift + 1 hide all non-PHP parts
Ctrl + Shift + 2 collapse all classes
Ctrl + Shift + 3 collapse all functions
Ctrl + Shift + 4 collapse all comments /**/
Ctrl + Shift + E expand all collapsed parts
Ctrl + Shift + C collapse all the expanded parts