Skip to main content
 Web开发网 » 站长学院 » Thinkphp教程

sublime text 3 thinkphp 插件怎么用

2021年11月14日5840百度已收录

Sublime中的一个THinkphp框架的工具包,主要包括thinkphp snippet等

Thinkphp有哪些功能?

访问官网框架在线api

辅助删除编辑器中打开目录所有文件的bom头(目前未移植)

通过ThinkPHP snippet提供代码补全功能 

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第1张

改进后的菜单少了一层,更快捷

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第2张

最新api

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第3张

删除bom头(目前未移植,有问题)

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第4张

完成的代码提示

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第5张

现在查看数据表字段注释和数据库查询统一用配置里的去访问数据库,因此有个“change database”菜单和“database queryer”菜单,查询表字段支持tp的命名方式,比如原表名think_user,在配置文件里配了前缀后我们在php文件里写D('User') 这样User选中后右键直接show_cloums就行了,为了方便大家记忆去除从输入框填写的步骤,简化为一个操作 效果如下:

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第6张

查看函数说明文档

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第7张

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第8张

数据库简单查询功能

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第9张

具体看github上的说明

选择php函数名后右键选择goto_php_document 或者按住shift点击

会显示函数定义描述(英文的源自netbeans)\

最后还支持了命令行访问网页cli模式方便大家调试action中操作,不需要开浏览器。 选择菜单中的ThinkPHP-CLI 弹出的文件中 输入你想访问的url 记住打开的项目更目录要有入口文件,并且php在path环境变量中有设置。 保存就可显示结果:

sublime text 3 thinkphp 插件怎么用  thinkphp插件 第10张

Github 地址:

评论列表暂无评论
发表评论
微信