sublime php 函数跳转,PHP-sublime text2 跨函数看函数注释实现

1.下载并解压ctags包中的ctags.exe到系统环境路径(默认压缩在c:windowssystem32就好了)

2.若没安装package control在这个插件的话,先安装它。这个在我的blog里有说明

3.现在安装开始ctags的插件了,在package control中选择install package,搜索ctags就能找到ctags的插件,安装之。

到这里ctags就安装好

安装了,肯定无法使用,必须系统中有ctags才能用

官方说明如下安装ctags

OS X

If anyone is having trouble getting the CTags -R flag to work on OSX, you are probably using the stock CTags installation.

To get a proper copy of ctags, use one of the following options:

Using Homebrew: brew install ctags

Using MacPorts: port install ctags

Make sure that Sublime Text is using the right version of CTags:*

If 'which ctags' doesn't point at ctags in '/usr/local/bin', make sure you add '/usr/local/bin' to your PATH ahead of the folder that 'which ctags' reported.

Add or modify the 'export PATH=...' (e.g. in /.profile) to make the change permanent

Linux

To get a proper copy of ctags, use one of the following options:

In a terminal session: sudo apt-get install ctags

Windows

Download the binary ctags.exe from Exuberant Ctags site.

Extract ctags.exe from the download zip to "C:Program FilesSublime Text 2" or any folder that within your PATH so CTags support for Sublime Text 2 can run it.

接着说一下使用

要想ctags可以使用,先要在相应的项目目录生成.tags文件,比如我要在G:AppDatawebsevenCola下生成。

首先cmd进入对应的目录

然后使用ctags -R -f .tags命令

接着你就可以发现目录下多了个文件

生成.tags文件后,在sublime text2中用ctrl+r+t (re)build ctags

使用操作点这里https://github.com/SublimeText/CTags

常用的就是ctrl+alt+]跳转定义处,ctrl+alt+[返回

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值