Sublime Forum

Ctags with qt

#1

Hi guys,
I recently switched from VIM to sublime text as it’s more eye-candy and it has that multiple cursor which I love. The only thing is i’ve been trying for quiet a while now to reproduce the intellisense like Visual Studio and can’t seem to be able to include the tags from Qt from the ctags plugin for Sublime Text.
So here is what I did and still can’t get the good suggestion when I start typing in sublime text :

  1. installed ctags for sublime text (through package control in Sublime Text)
  2. downloaded ctags and generated the ctags for qt in the src folder of qt with the simplest command :
ctags -R -f .tags *
  1. edited my ctags configuration in SublimeText and here it is :
{
    "command" : "C:\\Ctags\\ctags.exe",
    "extra_tag_files" : "D:\\...\\5_3_1_x86_msvc2012\\qtbase\\src\\.tags",
    "extra_tag_path":"D:\\...\\5_3_1_x86_msvc2012\\qtbase\\src\\.tags"
}

(… being the absolute path to my .tags files)
So as we can see, I tried the extra_tag_files and extra_tag_path
4) So when I type ctrl+t, ctrl+r and choose my project, it builds correctly the tags in my project, but when I then try to include Qts class, it doesn’t recognize them or when I type ctrl+t,ctrl+t (go to definition), it does nothing.
I’ve read these articles and tried the solution proposed but nothing works :
VIM ctags for Qt Development on OSX
How to use sublime text 2 and Ctags for erlang source code?
ctags in sublime text

Thanx in advance for the help !

0 Likes

#2

bump

0 Likes