Sublime Forum

Can someone help me install and use the CTags plugin, please

#1

Hey

Disclaimer: I’m new to Sublime Text but not to programming in general.

I love Sublime Text 2 but have been looking for some kind of “Go to function definition” functionality (the same as Ctrl+Clicking a function name in Netbeans/Eclipse). I read that the CTags plugin can be used to achieve this kind of thing in Sublime, but I can’t figure out how to install it.

I’ve downloaded the source of the CTags and AAALoadFirstExtensions and have put them in their own folders in the Packages folder. Am I supposed to now do something to “register” the plugins or make them work? I don’t see any menus (e.g. Tools -> Packages isn’t there). And once I have “registered” the plugins, do I have to do anything such as generate a tags file manually or something?

Sorry for the confusion but I hope you can appreciate the slight confusion given that I’ve only used larger IDEs.

Thanks! :smile:

0 Likes

#2

The CTags plugin is for Sublime Text 1, and won’t work with Sublime Text 2, unfortunately.

0 Likes

#3

Ah. That explains it, then. Thanks.

Is there any development effort to get the plugin to work with v2? I would be happy to look into supporting or helping with this. :smile:

0 Likes

#4

Would you mind possibly writing just a few lines outlining how to install and use it, please? I’ll give it a go and report back if it works on v2. :smile:

0 Likes

#5

Hi Sublimator!

I’m VERY interested in installing CTags within Sublime Tex 2.
I’ve cloned both CTags and AAALoadFirstExtensions repository into my ST2 Packages folder, and looked at the Linux bindings in “Default (Linux).sublime-keymap”, but they don’t seem to be working (nothing happens).

It’s sad ST2 don’t have the Tools->Packages menu, I can’t even check if the packaged is “installed” correctly.

0 Likes

#6

My ST2 console is showing this:

Reloading plugin /home/cristiano/.config/sublime-text-2/Packages/AAALoadFirstExtensions/pluginhelpers.py
Traceback (most recent call last):
File “./sublime_plugin.py”, line 29, in reload_plugin
File “./pluginhelpers.py”, line 22, in
from ctypes import windll, create_unicode_buffer
File “.\ctypes_init_.py”, line 10, in
ImportError: No module named _ctypes

I’ve tryed reinstalling all Python2.6 packages but didn’t work to fix the problem.

0 Likes

#7

hi i’m on ubuntu 10.10 and sublime text 2

i’ve downloaded ctags for st2 here:
github.com/SublimeText/CTags

then created my tag file in this way:

$ cd /absolute_path_of_my_cpp_framework/ $ ctags -R *
then opened /home/me/.config/sublime-text-2/Packages/CTagss/CTags.sublime-settings
and added:

"extra_tag_files" : ".gemtags", "/absolute_path_of_my_cpp_framework/tags"]

but if i open sublime text, save a new .cpp file, write ofPoint (a class of the framework i’m using), press ctrl+t… no new tab with definition is open.

sorry i’m new to sublime text and to ctags, how can i resolve?

0 Likes