In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "what are the practical shortcuts for Zend Studio". In daily operation, I believe many people have doubts about the practical shortcuts for Zend Studio. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "what are the practical shortcuts for Zend Studio?" Next, please follow the editor to study!
Edit function key combination to achieve the function applicable conditions Ctrl+/ single-line comments. When it is currently php code, a double slash line comment is added to the line of the cursor, and multiple lines are selected to add a double slash to each line When the code is html, add comments before and after the line. Selecting multiple lines will add comments before and after the selection, instead of adding PHP code for each line. Html code is all applicable. It does not apply to CSS partial Ctrl+Shift+/ block comments. Add block comments for selected PHP code. If no code is selected, add block comments to the line where the cursor is located. PHP code is applicable. The function of HTML code is the same as that of Ctrl+/. Ctrl+U selected code fragments are all converted to uppercase php, html, etc. All code fragments selected by Ctrl+L are converted to lowercase php, html, etc. Ctrl+D copy cursor is applicable to all lines of code, all code is applicable to Ctrl+E delete cursor line, all code is indented by tab, default is 4 space positions, can be set in preferences, Shift+Tab is reduced indentation This operation is also valid for multiline operations. That is, multiple lines increase / decrease indentation at the same time. All codes are applicable to Ctrl+Alt+F search in the file, open the "find in File" dialog box the entire ZDE environment applies Ctrl+BackSpace to delete the cursor before a word, or a symbol, note that the "one word" here is understood by ZDE itself, and there is a certain discrepancy in English all codes apply Ctrl+G to the line. Open the go to Line dialog box, fill in the line number and go to the corresponding line. This is the general shortcut key for the whole ZDE environment to apply Alt+ →. The right arrow of ← is located to the next position of the cursor, and the left arrow is located to the previous position of the cursor. The whole ZDE environment applies to the environment switch key combination function applies to the condition Esc hides the auxiliary window in order to maximize the editing area, while the file manager window does not hide the entire ZDE environment suitable for Ctrl+W switching automatic line wrapping, that is, whether there is a horizontal scroll bar when the code is too long Ctrl+Tab switches between editor tabs, it can also be described as switching between multiple open file windows Ctrl+F4 closes the current tab Alt+F4 closes the entire ZDE environment. Pay attention to the difference between HTML tag key combinations to achieve the applicable conditions. Ctrl+1,2,3 adds a pair of, and html tags, respectively, and all parts of the code are Ctrl+Enter lines broken, that is, a tag is generated. Note here that ZDE automatically generates
Tag, does not conform to the web standard Ctrl+~ space is a note: ~ key is located on the left side of the PC keyboard number 1, tab key above the Ctrl+B bold, resulting in a pair of tags, the web standard seems to advocate the use of Alt+I italics Generate a pair of tagged bookmark operation key combinations to achieve the function applicable condition F2 add / remove bookmarks all code parts Ctrl+F2 jumps to the next bookmark of the current document Alt+F2 switches between all bookmarks of the current project Ctrl+Shift+F2 deletes all bookmarks Ctrl+Shift+M display bookmarks dialog box Zend Studio debug shortcuts list key combinations function applicable condition F9 add / remove breakpoints all code parts F10 step by step. Step through the debug file to the next line F5. Execute the debug file until a breakpoint is encountered. F8 debug URL. Open the debug URL dialog F12 profile URL. Open the profile URL dialog box Shift+F8 to add a monitoring point. Open the add Watch dialog box Shift+F11 to jump out. Step to the first line of F11 statement after return. Step to the next executed line Shift+F10 executes to the cursor line. Execute the code to the line of the cursor. Ctrl+F5 non-disruptive execution script Shift+F5 stops debugger Ctrl+Alt+B displayed in the browser
Note: debug shortcuts are only used when debugging code. How to debug scripts in Zend Studio and how to build debug servers will be explained in detail in subsequent tutorials.
Reference:
The sixth issue of the electronic magazine PHPer, "Zend Studio-- 's sharp weapon for writing PHP code"
Zend studio help documentation
2. Zend shortcut key combination
Edit function key combination to realize the applicable conditions of function
Ctrl+/ single-line comments. When it is php code, double slash line comments are added on the line where the cursor is located, and double slashes are added for each line when multiple lines are selected. When the code is html, comments are added before and after the line. Selecting multiple lines will add comments before and after the selection, instead of adding PHP code and html code for each line. It is not applicable to the CSS part.
Ctrl+Shift+/ block comment, add / * * / block comment to the selected PHP code, if no code is selected, add the block comment on the line of the cursor PHP code is applicable, and it has the same function as Ctrl+/ for HTML code
All the code snippets selected by Ctrl+U are converted to uppercase php, html, etc.
All the code snippets selected by Ctrl+L are converted to lowercase php, html, etc.
All the code on the line where the Ctrl+D copy cursor is located applies.
Ctrl+E deletes the line where the cursor is located. All code applies.
Tab/Shift+Tab increases code indentation by tab, which defaults to 4 space positions, which can be set in preferences, while Shift+Tab reduces indentation, which is also effective for multiline operations. That is, multiple lines increase / decrease indentation at the same time. All codes apply
Ctrl+Alt+F looks in the file, opens the "find in file" dialog box, the whole ZDE environment is applicable.
Ctrl+BackSpace deletes a word or a symbol before the cursor. Note that "a word" here is understood by ZDE itself and is different from a word in English. All codes are applicable.
Ctrl+G goes to the line. Open the go to Line dialog box, fill in the line number and go to the corresponding line. This is a general shortcut that applies to the whole ZDE environment.
Alt+ →, the ← right arrow navigates to the next position of the cursor, and the left arrow navigates to the previous position of the cursor. The whole ZDE environment is applicable
The applicable conditions for realizing the function of environment switching key combination
Esc hides the secondary window to maximize the editing area, while the file manager window does not hide the entire ZDE environment
Ctrl+W toggles automatic line wrapping, that is, whether a horizontal scroll bar appears when the code is too long
Ctrl+Tab switches between editor tabs or can be described as switching between multiple open file windows
Ctrl+F4 closes the current tab. Alt+F4 closes the entire ZDE environment. Note the difference.
HTML tag key combination function applicable conditions
Ctrl+1,2,3 adds a pair of, html tags, all the code parts
Ctrl+Enter line break, that is, a tag is generated. Note here that ZDE automatically generates
Label, does not comply with web standard
The Ctrl+~ space is a note: ~ the key is on the left side of the PC keyboard number 1, above the tab key.
Ctrl+B bold, producing a pair of tags, the web standard seems to advocate the use of
Alt+I italics to produce a pair of tags
Conditions for the realization of the function of bookmark operation key combination
F2 add / remove all code parts of bookmarks
Ctrl+F2 jumps to the next bookmark of the current file
Alt+F2 switches between all bookmarks in the current project
Ctrl+Shift+F2 deletes all bookmarks
Ctrl+Shift+M display Bookmarks dialog box
Zend Studio debugging Shortcut list key combination function applicable conditions
F9 add / remove breakpoints all code parts
F10 step by step. Step through the debug file to the next line
F5 begins to execute. Execute the debug file until a breakpoint is encountered.
F8 debug URL. Open the debug URL dialog box
F12 profile URL. Open the profile URL dialog box
Shift+F8 adds a monitoring point. Open the add Watch dialog box
Shift+F11 pops out. Step to the first line after return
F11 sentence by sentence. Step to the next line to be executed
Shift+F10 executes to the cursor line. Execute the code to the line of the cursor.
Ctrl+F5 uninterrupted execution of scripts
Shift+F5 stops the debugger
Ctrl+Alt+B is displayed in the browser
3.
I have been using Zend Studio for PHP development, if you can master the keyboard shortcuts, and can get used to it, then it can really improve a lot of development efficiency, here I share with you.
The first is the shortcut key of the editing function.
Ctrl + D if you have selected, then directly copy and paste the selected part, if not, copy the line where your cursor is located, and this copy does not go into the pasteboard of the system.
Ctrl + E clear one line
Ctrl + Space generally this key is blocked by the input method, and its function is to show the completion of the code.
Here are the shortcut keys for code expansion
Ctrl + Shift + 1 put away all non-PHP parts
Ctrl + Shift + 2 put away all classes
Ctrl + Shift + 3 put away all functions
Ctrl + Shift + 4 put away all comments / * /
Ctrl + Shift + E expand all the retracted parts
Ctrl + Shift + C put away all unfolded parts
At this point, the study of "what are the practical shortcut keys for Zend Studio" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.