Home  >  Article  >  Backend Development  >  sublime-text - SublimeText 求插件支持php跳转到require include包含的文件?

sublime-text - SublimeText 求插件支持php跳转到require include包含的文件?

WBOY
WBOYOriginal
2016-06-06 20:24:002537browse

如下代码,想快速跳转到该文件

<code>include './lib/main.php';
</code>

就像vim的gf命令

回复内容:

如下代码,想快速跳转到该文件

<code>include './lib/main.php';
</code>

就像vim的gf命令

https://packagecontrol.io/packages/Open-Include

在歪果仁那找到了答案。

是有这样的一个插件
看这里:http://www.imjeff.cn/blog/146/

Sublime​Code​Intel 是一个代码提示、补全插件,支持 JavaScript、Mason、XBL、XUL、RHTML、SCSS、Python、HTML、Ruby、Python3、XML、Sass、XSLT、Django、HTML5、Perl、CSS、Twig、Less、Smarty、Node.js、Tcl、TemplateToolkit 和 PHP 等语言,是 Sublime Text 自带代码提示功能的很好扩展。它还有一个功能就是跳转到变量、函数定义的地方,十分方便。

使用 Sublime​Code​Intel 之前你需要安装相应程序并把路径写入 ~/.codeintel/config 或 project_root/.codeintel/config 中,ReadMe 中有详细的 说明,不再赘述。
操作看这里:http://sublimecodeintel.github.io/SublimeCodeIntel/
以上答案是搜索出来的,您看看能不能解决。

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