这几天做系统再ubuntu14.04中重新安装了sublime text,从新安装完ctags插件,但是在文件上面右键:Ctags:Rebuild Tags的时候,提示/bin/sh:1 ctags:not found,这时候需要从新安装ctag可执行程序,直接使用sudo apt-get install ctags 命令即可。安装完以后想要通过ctrl+左键的方式跳转,ctrl+右键返回。这时候需要配置Mouse Binding文件,找到这个文件,复制下面命令:
[
{
"button": "button1",
"count": 1,
"press_command": "drag_select",
"modifiers": ["ctrl"],
"command": "navigate_to_definition"
},
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl"],
"command": "jump_prev"
}
[
{
"button": "button1",
"count": 1,
"press_command": "drag_select",
"modifiers": ["ctrl"],
"command": "navigate_to_definition"
},
{
"button": "button2",
"count": 1,
"modifiers": ["ctrl"],
"command": "jump_prev"
}
]
想要在windows中使用sublime text 3的话,通过package control安装的ctags插件是无法使用的,那怎么使用ctags呢?去package control的官网:
https://packagecontrol.io/packages/CTags
中找到ctags的官网Exuberant Ctags: http://ctags.sourceforge.net/
中下载Source and binary for Windows 98/NT/2000/XP这一项:ctags58.zip,
然后将解压出来的文件中的ctags.exe文件拷贝到c:\windows\system32中,这时候就可以在windows下使用ctags了。
相关热门文章
评论热议