Home >Backend Development >PHP Tutorial >【PHP分享】Sublime Text 2安装Ctags插件

【PHP分享】Sublime Text 2安装Ctags插件

WBOY
WBOYOriginal
2016-06-23 13:48:36973browse

1. 下载ctags58.zip,解压后将其中的ctags.exe放到Path路径下,以笔者为例,将其直接放到%SystemRoot%\system32路径下,然后通过命令行测试如下:


2. 调用Sublime Text 2包管理器安装Ctags插件:


3. 在工程目录下运行“ctags -R -f .tags ?fields=+aimSl ?languages=php“,此时可在工程目录下生成.tags索引文件:


4. 将光标移到指定函数名,快捷键”Ctrl+t+t“即可查到该函数的定义;

  {    "command": "navigate_to_definition",    "keys": ["ctrl+t", "ctrl+t"]  }
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