PHPstrom IDE like a God (上)
Use phpstrom in windows
PHPstrom IDE like a GodAa
Minimalism
---------------
导航条显示、隐藏
alt + 1 (num)
导航-> 搜索
class : 找类
file :
symbol: 找方法
line :
视图->
状态栏
导航栏
文件->设置
-> apperance 外观
-> breakcrumb
-> colors&fonts
-> 设置行距和行宽度
-> 设置好看的主题
-》https://github.com/daylerees/colour-schemes
-> 右键
->标签显示
-> none 不显示标签
-> ctrl + shift + a [Editor Tabs] ->恢复显示
编辑器 / 编辑器 / Editor Tabs / 显示隐藏tab
---------------
Color Ide
->搜索ide配置
ctrl + shift + a
搜索插件: plugins
Two Important Keybingdings
---------------
2个 重要快捷键 和更改快捷键
ctrl + shift + n 快速查找文件 -> sublime ctrl+p
ctrl + shift + a -> keymap -> copy 副本 -> 更改配置
查看文档结构
导航->文件结构->file structure
ctrl + f12
Create New Files Quickly
---------------
创建新文件
打开最近文件
ctrl + E
快捷键创建文件
navigation Bar
alt + home ; 回车 ; 到目录创建快捷键
Custom File Templates
---------------
shift + shift (search everything)
更改默认模板:
ctrl+shift+a -> file templates
试着创建一个 并用快捷方式创建出来一个类型
Live Templates
---------------
textfield
shift + shift || ctrl+shift+a -> ptext 的自定义
textfield 定义一个自动补全的模板
-> 直接贴代码版
-> 改进版
<div class="form-group">
{{ Form::label('$NAMES','$VALUES') }}
</div>
->并且给模板添加默认的选项
ctrl + E history_open_file
008
Custom Formatting
---------------
定义格式化的格式:
config / 编辑器 / code style -> 中进行配置
brace place
定义格式化代码:
ctrl + alt + L 进行格式化代码
Refactoring Name and Method
---------------
重构 (reflector)
shift + ctrl + alt + t
rename
重新进行
ctrl + c / x
ctrl + d 直接复制到下一行
Refactoring Pull Up
---------------
快速将子类中的方法复制到父类中
抽出方法 ctrl + shift + alt + t
-> method
pull
->
向上层
Refactoring Extract Interface
---------------
重命名类,自动关联文件名和继承类。。。
rename
ctrl+shift+t
将类编变成 interface 同样保留了之前的类 :
ctrl+shift+t > i(接口 界面..)
Refactoring Extrace and inline variable
---------------
将这句:(1) $this->message($message,'success');
变为:(2)
$succ = 'success';
$this->message($message,$succ);
ctrl +shift + t -> 变量
将(2)变成(1)
定位到$succ -> ctrl + shift +t -> 内联
Fast Composition
---------------
alt + insert -》generate -> 直接生成构造方法 __construct()
将 :
public function __construct( \Illuminate\Auth )
自动添加转为 -> use Illuminate\Auth;
alt + enter -> import class
DIY使用自动补全功能
_c tab -> live template

浙公网安备 33010602011771号