安裝 ctags 在 sublime text 2

first of all, you can find almost everything on this git page: https://github.com/SublimeText/CTags


I'm just doing some translation work here, and of course, trying to make a note.

notes that I've try it out couple times both on my laptop in office and @ home.


install CTAGS:

0.在Package Control:Install 中找到Ctags,安裝。

1.網上找到後,下載ctags58.zip包,解壓,把ctags.exe放在sublime 2 的目錄裏[ probably u can put it wherever u like],配置path。

1.1 執行一個 ctags -R -f .tags的命令 // it will run a couple minutes;


2. open a file of your project and run this command in st2 : ctrl t r ; let it build for another couple minutes.

2.2 choose a function where it's been invoked, type in : ctrl t t ; see what comes out // jump to the definition. It just doesnot work for param.


u can also 在st2中,打開default設置查看各種快捷鍵用法,貌似有很多用不了,conflict。


rebuild tags: ctrl t + r // shortcut keys沒反應的話,執行這個後,就應該能用了
jump back to last modification: ctrl + t + m , 這個已經被我改成 ctrl + i
jump to definition: ctrl + t + t


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章