PHPstorm
插件市场已上线,搜索 Laravel
看到 Laravel Live Templates
就是了。如果无法安装插件,可以使用下面方法自行导入
自助使用方法:
- 下载三个
xml
文件放到templates
文件夹下,templates
文件夹没有可以自己新建
2020版
- Windows:
C:\Users\Administrator\AppData\Local\JetBrains\PhpStorm2020.1\config\templates
- OS X:
~/Library/Application Support/JetBrains/PhpStorm2020.1/templates/
旧版
- Windows:
C:\Users\Administrator\.PhpStorm2017.3\config\templates
- Linux:
~\.PhpStorm2017.3\config\templates
- OS X:
~/Library/Preferences/PhpStorm2017.3/templates
-
重启
PhpStorm
-
打开设置,搜索
Live Templates
就能看到添加的模板