Home  >  Article  >  Development Tools  >  Summary of commonly used shortcut keys in PHPStorm

Summary of commonly used shortcut keys in PHPStorm

亚连
亚连Original
2018-05-10 14:01:2013291browse

This article will introduce you to some common shortcut keys for Phpstrom. It is very practical for those of us who use Phpstrom development tools every day. Let me introduce them to you below .

1. Create a project from the version control system:

CVS -> Checkout from Version Control

2, associated DOC document:

right-clickExternal Librariese -> Configure PHP include paths

3, remove the wavy lines:

##settings -> Editor -> Colors & Fonts -> General -> TYPO->Effects

4, Show line numbers: ##settings -> Editor->Appearance->Show line numbers

5, synchronize files remotely or locally:##Tools -> Deploments -> Configuration

6, remove the upper right corner browsing Server icon:

##settings -> tools -> WebBrowsers

##7, add VIM plug-in:

settings->editor ->plugins->browse repositories ->Search VIM##8, do not open the project file when starting

Settings->General Remove Reopen last project on startup.9, Cancel automatic save

appearance -> ; system settings -> Remove 10 from the two options of save file, and mark the edited file with an asterisk:

settings - > editor -> editor tabs -> Check mark modified tabs…11, add extension highlighting:

settings -> editor -> file types Commonly used shortcut keys:

ctrl alt l Format the codectrl shift u Switch case ctrl shift / ctrl shift - Fold/expand all blocks

ctrl e List the last opened files

ctrl tab / ctrl shift tab Switch open file

ctrl / Line comment

ctrl shift / Block comment

ctrl b Function tracing, same as command click

ctrl alt left and right Arrow Operation action forward/reverse

shift ctrl r Search the path of the corresponding file by file name

shift ctrl t Search the path of the corresponding file by class name

shift ctrl c Copy the path of the current file

ctrl Shift O Open the file

ctrl O Open the class

alt F1 Locate the location of the edited file:

alt F12 Open command Line bar

ctrl shift f Global search

Commonly used PHPStorm shortcut keys:

ctrl+j            插入活动代码提示
ctrl+alt+t        当前位置插入环绕代码
alt+insert        生成代码菜单
ctrl+q            查看代码注释
ctrl+d            复制当前行
ctrl+y            删除当前行
shift+F6          重命名
ctrl+shift+u      字母大小写转换
ctrl+f            查找
ctrl+r            替换
F4                查看源码
ctrl+shift+i      查看变量或方法定义源
ctrl+g            跳转行
ctrl+alt+F12      跳转至当前文件在磁盘上的位置
alt+down          查看下一个方法
alt+up            查看上一个方法
ctrl+alt+l        重新格式化代码
ctrl+shift+down   statement向下移动
ctrl+shift+up     statement向上移动
alt+shift+down    line向下移动
alt+shift+up      line向上移动
ctrl+/            行注释
ctrl+shift+/      块注释
ctrl+shift+n      打开工程中的文件
ctrl+b            跳到变量申明处
ctrl+[]           匹配 {}[]
ctrl+shift+]/[    选中块代码<table>....</table>
ctrl+x            剪切行
ctrl+shift+v      复制多个文本
alt+left/right    标签切换
ctrl+p            显示默认参数
Ctrl + Alt + L    格式化代码
alt + &#39;7&#39;         显示当前的函数结构
ctrl + &#39;.&#39;        折叠选中的代码的代码
ctrl + &#39;-/+&#39;      可以折叠项目中的任何代码块,包括htm中的任意nodetype=3的元素,function,或对象直接量等等。它不是选中折叠,而是自动识别折叠
ctrl + F12        可以显示当前文件的结构

The above is what I have compiled for you Here are the commonly used shortcut keys for Phpstorm. I hope it will be helpful to everyone in the future. Related articles:

How to operate phpStorm correctly

PHPStorm Composer quick initialization project example

The above is the detailed content of Summary of commonly used shortcut keys in PHPStorm. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Basic use of PHPStormNext article:Basic use of PHPStorm