Home  >  Article  >  Backend Development  >  phpStorm使用技能总结

phpStorm使用技能总结

WBOY
WBOYOriginal
2016-06-13 12:17:34987browse

phpStorm使用技巧总结

工欲善其事,必先利其器. 拥有一个好的工具不仅可以事半功倍,而且也令人神清气爽.

在编辑器上,我所走过的路是这样的:notepad(对,就是最原始的WIN下的note) -> editplus -> zendstudio -> notepad++  & vim  -> phpstorm  .

VIM和notepad++如果不加插件, 就是纯粹的编辑器, 尽管写代码很爽, 但管理项目还是太弱, 要配置完善加各种插件,整个下来就很耗时耗力.phpstorm可以使用VIM编辑模式,这样就拥有了VIM的操作和IDE的项目管理.

zendstudio不可否认是一款非常出色的IDE, 但是也有大吃内存的诟病和不能编辑大文件的致命伤. 在eclipse上加了个插件,改为收费软件. 号称"借花献佛的胖子". 我也是一直在使用ZS的, 后来同事推荐, 用过phpstorm,只不过当时是两年前, 那时候的PHPSTORM还不成熟, 粗糙的界面加上"也很卡"的毛病让我最终弃用了它.

如今,phpStorm不同以往,做的很完美. 使用了一段时间,感觉不会再使用ZS了.


现在把一些使用技巧记录下来,免得到时候忘了再查:

1,从版本控制系统创建项目:

CVS -> Checkout from Version Control


2, 关联DOC文档:

右键External Librariese -> Configure PHP include paths


3, 去掉波浪线:

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


4, 显示行号:

settings -> Editor->Appearance->Show line numbers 


5,远程或本地同步文件:

Tools -> Deploments -> Configuration


6, 去掉右上角浏览器图标:

settings -> tools -> WebBrowsers


7, 添加VIM插件:

settings->editor ->plugins->browse repositories ->搜索VIM


8,启动的时候不打开工程文件

Settings->General去掉Reopen last project on startup.


9, 取消自动保存

appearance -> system settings -> save file的两个选项 去掉


10, 将编辑的文件加星号标识:

settings -> editor -> editor tabs -> 勾选 mark modifed tabs…


11, 添加扩展名高亮显示:

settings -> editor -> file types  



常用快捷键:

command + option + l    将代码格式化

command + shift + u    切换大小写

command + shift + + / command + shift + -     折叠/展开所有区块

command + e     列出最后打开的文件

control + tab  / control + shift + tab     切换打开的文件

command + /     行注释

ctrl + shift + /      块注释

command + b     函数追踪,command +单击

command + alt + 左右箭头      操作动作前进/回退

shift + command + r      按文件名搜索对应文件所在路径

shift + command + t      按类名搜索对应文件所在路径

shift + command + c      复制当前文件所在路径

Command + Shift + O     打开文件

Command + O          打开类

alt + F1        定位编辑文件所在位置:

alt + F12        打开命令行栏

command + shift + f 全局搜索

 

本文转自http://blog.csdn.net/black_ox/article/details/42082473

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