Sublime Text2/3怎样在Ubuntu宝骏310w中配配置置CTags插件

The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.下载&程序,放到目录D:/ctags/下
安装ctags插件
1. 打开Sublime Text&2. Preferences-&Package Control-&Install Package-&CTags&3. 配置ctags插件&4. Preferences-&Package Settings-&CTags-&Settings & User,复制下面的配置
"command": "d:/ctags/ctags.exe"
5. 在项目生成ctags索引,在左侧项目目录下,CTags:Rebuild Tags,然后在函数名上,右键Navigate To Definition就可以实现跳转了&6. 实现用Ctrl+鼠标左键跳转。Preferences-&Package Settings-&CTags-&Mouse Binding & User,复制下面的配置
"button": "button1",
"count": 1,
"press_command": "drag_select",
"modifiers": ["ctrl"],
"command": "navigate_to_definition"
记录两个常的快捷键配置
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+l"], "command": "duplicate_line" }19832人阅读
linux编程(75)
在公司看代码,都是source insight和sublime text一起用的,前者看代码,后者编辑代码。其实前者主要是找函数定义这一点比ST方便,ST安装ctags后,也能达到同样的效果。
1.打开Sublime Text 2/3软件,在Preferences(设置)菜单中打开Package Control(插件管理器)打开菜单后找到install packages,搜索ctags, 回车执行,稍等一会看到左下角提示安装成功就好了
2.这时你在打开的文件中,右键菜单中会多一个Navigate to Definition菜单项
3.在侧左栏的工程/项目文件上右键会看到CTags:
Rebuild Tags菜单项
4.这时你可以选中一个函数然后右键打开Navigate
to Definition菜单项并执行,会发现左下角有这样的提示: Can't find any relevant tags file这是因为我们没有配置ctags可执行文件的路径
5.从官网上下载ctags可执行程序,解压到某个目录中,并将该目录添加到系统的PATH环境变量里。这样sublime text才能执行该程序
6.这时再到,侧左栏的工程/项目文件上右键执行CTags: Rebuild Tags菜单项,发弹出一个ctags的运行框,说明可以正常工作了
这时再选中一个函数,右键打开Navigate
to Definition菜单项并执行
7.如果喜欢用快捷键操作,控制函数的跳转,可以打开Preferences-&Package Settings-&ctags-&Key Bindings-User,并编辑这个文件,当然,如果不知道格式,可以将Key
Bindings-Default里面的内容copy过来,然后修改某些命令的值
我的内容如下:
& & &command&: &navigate_to_definition&,
& & &keys&: [&ctrl+t&]
& & &command&: &jump_back&,
& & &keys&: [&alt+,&]
&&相关文章推荐
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:481676次
积分:5250
积分:5250
排名:第4694名
原创:106篇
转载:66篇
评论:68条
(1)(1)(1)(1)(2)(5)(2)(3)(5)(6)(3)(1)(9)(2)(1)(2)(2)(1)(4)(1)(3)(3)(3)(3)(3)(4)(5)(2)(1)(1)(1)(3)(2)(1)(3)(6)(1)(64)(7)(2)(1)}

我要回帖

更多关于 eclipse中配置tomcat 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信