yangweijie/think-editor

v1.0.0 2024-05-08 09:14 UTC

This package is auto-updated.

Last update: 2024-09-08 10:00:11 UTC


README

使用编辑器或IDE打开ThinkPHP中的文件项目

安装

composer require yangweijie/think-editor

// editor 配置中设置打开的 编辑器
'editor'   => ‘vscode’,

其他打开方式

sublime

需要安装 GitHub - thecotne/subl-protocol: sublime text protocol 插件

phpstorm

参考 laravel-debugbar 中正确使用 ide phpstorm 打开项目文件的方式 | Laravel China 社区 文章,将js文件放置到合适的位置并添加注册表即可

生成打开协议的链接

use yangweijie\editor\Editor;

Editor::getEditorHref($file, $line);