Zend Studio 实用快捷键一览表(精心整理)
注:本文省略“通用快捷键”描述,诸如:ctrl+N=新建,ctrl+O=打开,ctrl+C=复制,ctrl+V,ctrl+X……等等几乎所有软件都通用的一组快捷键,而着重介绍zde独有的快捷键,了解并灵活运用这些快捷键以后,一定能帮助您在实际的项目操作中更加游刃有余。(怎么越写越觉得我是在做游戏秘籍,哈哈!)
组合键 | 实现功能 | 适用条件 |
---|---|---|
Ctrl+/ | 单行注释。当前为php代码时,则在光标所在行添加双斜杠行注释,选择多行则每一行都添加双斜杠;而当代码为html时则在行前后添加注释,选中多行将在选区前后添加注释,而非每行添加 | PHP代码、html代码全部适用,不适用于CSS部分 |
Ctrl+Shift+/ | 块注释,为选择的PHP代码添加块注释,如果没有选择任何代码,则将光标所在行添加块注释 | PHP代码适用,对HTML代码其功能与Ctrl+/相同 |
Ctrl+U | 选择的代码片段全部转换为大写 | php、html等均适用 |
Ctrl+L | 选择的代码片段全部转换为小写 | php、html等均适用 |
Ctrl+D | 复制光标所在行 | 所有代码均适用 |
Ctrl+E | 删除光标所在行 | 所有代码均适用 |
Tab/Shift+Tab | 按tab增加代码缩进,默认为4个空格位置,可在首选项中进行设置,Shift+Tab则减少缩进,此操作对多行操作同样有效。即多行同时增加/减少缩进。 | 所有代码均适用 |
Ctrl+Alt+F | 在文件中查找,打开“在文件中查找”对话框 | 整个ZDE环境适用 |
Ctrl+BackSpace | 删除光标前一个单词,或者一个符号,注意这里的“一个单词”是由ZDE自行理解的,与英文中的一个单词有一定出入 | 所有代码均适用 |
Ctrl+G | 转到行。打开转到行对话框,填写行数字即可转到相应行,此为通用快捷键 | 整个ZDE环境适用 |
Alt+ →,← | 右箭头是定位到光标的下一个位置,左箭头则是定位到光标的上一个位置。 | 整个ZDE环境适用 |
组合键 | 实现功能 | 适用条件 |
---|---|---|
Esc | 隐藏辅助窗口,以便让编辑区域最大,而文件管理器窗口不会隐藏 | 整个ZDE环境适用 |
Ctrl+W | 切换自动换行,即当代码超长时是否出现横向滚动条 | |
Ctrl+Tab | 在各个编辑器标签页之间切换,也可描述为在多个打开的文件窗口间切换 | |
Ctrl+F4 | 关闭当前标签页,Alt+F4是关闭整个ZDE环境,注意下区别 |
组合键 | 实现功能 | 适用条件 |
---|---|---|
Ctrl+1,2,3 | 分别添加一对、
html标签, |
所有代码部分 |
Ctrl+Enter | 断行,即产生一个 标签,这里注意ZDE自动产生的为 标签,不符合web标准 |
|
Ctrl+~ | 空格即一个 注意:~键位于PC键盘数字1左侧,tab键上方 | |
Ctrl+B | 粗体,产生一对标签,web标准似乎提倡使用 | |
Alt+I | 斜体,产生一对标签 |
组合键 | 实现功能 | 适用条件 |
---|---|---|
F2 | 添加/删除书签 | 所有代码部分 |
Ctrl+F2 | 跳到当前文件的下一个书签 | |
Alt+F2 | 在当前项目的所有书签间切换 | |
Ctrl+Shift+F2 | 删除所有书签 | |
Ctrl+Shift+M | 显示书签对话框 |
组合键 | 实现功能 | 适用条件 |
---|---|---|
F9 | 添加/删除断点 | 所有代码部分 |
F10 | 逐过程。单步执行调试文件到下一行 | |
F5 | 开始执行。执行调试文件,直到遇到断点。 | |
F8 | 调试URL。打开调试URL对话框 | |
F12 | 概要文件URL。打开profile URL对话框 | |
Shift+F8 | 添加监视点。打开添加监视点对话框 | |
Shift+F11 | 跳出。单步执行到返回后执行的第一行 | |
F11 | 逐语句。单步执行到下一被执行的行 | |
Shift+F10 | 执行到光标行。执行代码到光标所在行。 | |
Ctrl+F5 | 无中断的执行脚本 | |
Shift+F5 | 停止调试器 | |
Ctrl+Alt+B | 在浏览器中显示 |
注:调试快捷键只有在调试代码的时候才会用到,关于如何在Zend Studio 调试脚本,以及如何搭建调试服务器等内容,在后续教程中将做详细的讲解。
参考资料:
电子杂志《PHPer》第六期文章《Zend Studio——编写PHP 代码的利器》
zend studio 帮助文档
二、zend 快捷键组合
编辑功能 组合键 实现功能 适用条件
Ctrl+/ 单行注释。当前为php代码时,则在光标所在行添加双斜杠行注释,选择多行则每一行都添加双斜杠;而当代码为html时则在行前后添加注释,选中多行将在选区前后添加注释,而非每行添加 PHP代码、html代码全部适用,不适用于CSS部分
Ctrl+Shift+/ 块注释,为选择的PHP代码添加/* */块注释,如果没有选择任何代码,则将光标所在行添加块注释 PHP代码适用,对HTML代码其功能与Ctrl+/相同
Ctrl+U 选择的代码片段全部转换为大写 php、html等均适用
Ctrl+L 选择的代码片段全部转换为小写 php、html等均适用
Ctrl+D 复制光标所在行 所有代码均适用
Ctrl+E 删除光标所在行 所有代码均适用
Tab/Shift+Tab 按tab增加代码缩进,默认为4个空格位置,可在首选项中进行设置,Shift+Tab则减少缩进,此操作对多行操作同样有效。即多行同时增加/减少缩进。 所有代码均适用
Ctrl+Alt+F 在文件中查找,打开“在文件中查找”对话框 整个ZDE环境适用
Ctrl+BackSpace 删除光标前一个单词,或者一个符号,注意这里的“一个单词”是由ZDE自行理解的,与英文中的一个单词有一定出入 所有代码均适用
Ctrl+G 转到行。打开转到行对话框,填写行数字即可转到相应行,此为通用快捷键 整个ZDE环境适用
Alt+ →,← 右箭头是定位到光标的下一个位置,左箭头则是定位到光标的上一个位置。 整个ZDE环境适用
环境切换 组合键 实现功能 适用条件
Esc 隐藏辅助窗口,以便让编辑区域最大,而文件管理器窗口不会隐藏 整个ZDE环境适用
Ctrl+W 切换自动换行,即当代码超长时是否出现横向滚动条
Ctrl+Tab 在各个编辑器标签页之间切换,也可描述为在多个打开的文件窗口间切换
Ctrl+F4 关闭当前标签页,Alt+F4是关闭整个ZDE环境,注意下区别
HTML标记 组合键 实现功能 适用条件
Ctrl+1,2,3 分别添加一对
、、 html标签, 所有代码部分
Ctrl+Enter 断行,即产生一个
标签,这里注意ZDE自动产生的为
标签,不符合web标准
Ctrl+~ 空格即一个 注意:~键位于PC键盘数字1左侧,tab键上方
Ctrl+B 粗体,产生一对标签,web标准似乎提倡使用
Alt+I 斜体,产生一对标签
书签操作 组合键 实现功能 适用条件
F2 添加/删除书签 所有代码部分
Ctrl+F2 跳到当前文件的下一个书签
Alt+F2 在当前项目的所有书签间切换
Ctrl+Shift+F2 删除所有书签
Ctrl+Shift+M 显示书签对话框
Zend Studio调试快捷键列表 组合键 实现功能 适用条件
F9 添加/删除断点 所有代码部分
F10 逐过程。单步执行调试文件到下一行
F5 开始执行。执行调试文件,直到遇到断点。
F8 调试URL。打开调试URL对话框
F12 概要文件URL。打开profile URL对话框
Shift+F8 添加监视点。打开添加监视点对话框
Shift+F11 跳出。单步执行到返回后执行的第一行
F11 逐语句。单步执行到下一被执行的行
Shift+F10 执行到光标行。执行代码到光标所在行。
Ctrl+F5 无中断的执行脚本
Shift+F5 停止调试器
Ctrl+Alt+B 在浏览器中显示
html标签, 所有代码部分
Ctrl+Enter 断行,即产生一个
标签,这里注意ZDE自动产生的为
标签,不符合web标准
Ctrl+~ 空格即一个 注意:~键位于PC键盘数字1左侧,tab键上方
Ctrl+B 粗体,产生一对标签,web标准似乎提倡使用
Alt+I 斜体,产生一对标签
书签操作 组合键 实现功能 适用条件
F2 添加/删除书签 所有代码部分
Ctrl+F2 跳到当前文件的下一个书签
Alt+F2 在当前项目的所有书签间切换
Ctrl+Shift+F2 删除所有书签
Ctrl+Shift+M 显示书签对话框
Zend Studio调试快捷键列表 组合键 实现功能 适用条件
F9 添加/删除断点 所有代码部分
F10 逐过程。单步执行调试文件到下一行
F5 开始执行。执行调试文件,直到遇到断点。
F8 调试URL。打开调试URL对话框
F12 概要文件URL。打开profile URL对话框
Shift+F8 添加监视点。打开添加监视点对话框
Shift+F11 跳出。单步执行到返回后执行的第一行
F11 逐语句。单步执行到下一被执行的行
Shift+F10 执行到光标行。执行代码到光标所在行。
Ctrl+F5 无中断的执行脚本
Shift+F5 停止调试器
Ctrl+Alt+B 在浏览器中显示
三、
我一直使用Zend Studio进行PHP的开发,如果能够掌握其中的快捷键,并且能使用习惯了,那么确实能提高不少的开发效率,在这里我和大家共享 一下。
首先是编辑功能的快捷键
Ctrl + D 如果你有选中,那么就直接复制粘贴你选中的部分,如果你没有选中则直接复制你光标所在的那一行,并且这种复制不进入系统的粘贴板内。
Ctrl + E 清楚一行
Ctrl + Space 一般这个键都被输入法屏蔽掉了,它的功能是显示代码完成
下面是代码收展的快捷键
Ctrl + Shift + 1 收起所有非PHP部分
Ctrl + Shift + 2 收起所有的类
Ctrl + Shift + 3 收起所有的函数
Ctrl + Shift + 4 收起所有的注释部分/* */
Ctrl + Shift + E 展开所有收起部分
Ctrl + Shift + C 收起所有展开的部分

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Word shortcut keys for merging cells When editing tables using Microsoft Word, we often need to merge cells in order to adjust the structure and layout of the table. Word provides several ways to merge cells, including using shortcut keys. This article will introduce the shortcut keys for merging cells in Word to help you operate tables more efficiently. In Word, you can use shortcut keys to merge cells. The following are some commonly used shortcut keys for merging cells: Ctrl+Shift+

NVIDIA graphics cards have their own screen recording function. Users can directly use shortcut keys to record the desktop or game screen. However, some users reported that the shortcut keys cannot be used. So what is going on? Now, let this site give users a detailed introduction to the problem of the N-card screen recording shortcut key not responding. Analysis of the problem of NVIDIA screen recording shortcut key not responding Method 1, automatic recording 1. Automatic recording and instant replay mode. Players can regard it as automatic recording mode. First, open NVIDIA GeForce Experience. 2. After calling out the software menu with the Alt+Z key, click the Open button under Instant Replay to start recording, or use the Alt+Shift+F10 shortcut key to start recording.

The shutdown shortcut key for Windows desktop computers is ALT+F4; the shutdown shortcut key for Windows laptops is Alt+Fn+F4; the shutdown shortcut key for Apple computers is Ctrl+Option+Power key. Analysis 1 If it is a Windows desktop computer, the shortcut key for shutting down is ALT+F4. After pressing the key, the shutdown interface will pop up. Simply press the Enter key to complete the shutdown. 2. If it is a Windows laptop, the shortcut key to shut down is Alt+Fn+F4, and then press the Enter key to complete the shutdown. 3. If it is an Apple computer, then the shutdown key is Ctrl+Option+Power key to complete the shutdown. Supplement: What are the computer shortcut keys? 1 The computer shortcut keys are: C

PyCharm Beginner's Guide: Practical Tips for Deleting Projects PyCharm is a powerful Python integrated development environment (IDE). When developing projects, sometimes you need to delete projects or files in the projects. This article will introduce practical techniques for deleting projects in PyCharm, and provide specific code examples to help novices better understand and apply. 1. Delete the project Deleting the project means deleting the entire project folder, which is very useful when we need to clean or rebuild the project. Delete in PyCharm

Practical tips for converting full-width English letters into half-width forms. In modern life, we often come into contact with English letters, and we often need to input English letters when using computers, mobile phones and other devices. However, sometimes we encounter full-width English letters, and we need to use the half-width form. So, how to convert full-width English letters to half-width form? Here are some practical tips for you. First of all, full-width English letters and numbers refer to characters that occupy a full-width position in the input method, while half-width English letters and numbers occupy a full-width position.

How to use shortcut keys to take screenshots in Win8? In our daily use of computers, we often need to take screenshots of the content on the screen. For users of Windows 8 system, taking screenshots through shortcut keys is a convenient and efficient operation method. In this article, we will introduce several commonly used shortcut keys to take screenshots in Windows 8 system to help you take screenshots more quickly. The first method is to use the "Win key + PrintScreen key" key combination to perform full

The shortcut key for renaming is F2. Analysis 1 The shortcut key for renaming is F2. 2 If you want to rename a file or folder, you can press F2 after selecting the file, modify it directly and press Enter. 3 Sometimes you can also use the mouse to select the file, right-click, select Rename, and press Enter after the modification is completed. 4 Shortcut keys refer to the special combination or sequence of keys on the keyboard to quickly complete a certain command, which can effectively improve work efficiency. Supplement: What are shortcut keys? 1 Shortcut keys, also called hot keys, refer to completing an operation through certain specific keys, key sequences or key combinations. You can use shortcut keys to do some work instead of the mouse. You can use keyboard shortcuts to open, close, and navigate the start menu, desktop, menus, and dialog boxes.

How to use the copy-paste shortcut keys Copy-paste is an operation we often encounter when using computers every day. In order to improve work efficiency, it is very important to master the copy and paste shortcut keys. This article will introduce some commonly used copy and paste shortcut keys to help readers perform copy and paste operations more conveniently. Copy shortcut key: Ctrl+CCtrl+C is the shortcut key for copying. By holding down the Ctrl key and then pressing the C key, you can copy the selected text, files, pictures, etc. to the clipboard. To use this shortcut key,
