ctags

Vim and Ctags tips and tricks [closed]

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have just installed Ctags (to help with C++ development) with my Vim (or rather gVim), and would like to find out your favorite commands, macros, shortcuts, tips that go along with it... Share your best arsenal. What other Vim add-ons you would recommend for C++ on Vim development? EDIT What other add-on you would use in conjunction with Ctags? EDIT2 What version of gVim you use with tags? Does it make a difference? EDIT3 How do you enhance your programming experience for both big and small projects? 回答1: Ctrl + ] - go to definition Ctrl +

How can I jump to class/method definition in Atom text editor?

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Is there an easy way to do this? On Aptana I used Control +click and I wish there was a way to do something similar on Atom. 回答1: I had the same issue and atom-goto-definition (package name goto-definition ) worked like charm for me. Please try once. You can download directly from Atom. This package is DEPRECATED. Please check it in Github. 回答2: I believe the problem with "go to" packages is that they would work diferently for each language. If you use Javascript js-hyperclick and hyperclick (since code-links is deprecated) may do what you

Universal ctags on Windows

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm new to ctags. After reading some information about the program, I concluded that "Universal ctags" is the newest version (successor of "exhuberant ctags") and still under active development: https://ctags.io/ Most people use it on Linux. For some specific reasons I need to use it on Windows (Windows 10, 64-bit to be more precise). I'm looking for an executable file of Universal ctags. Do you know where to download such an executable? PS: I'm not interested in the cygwin-approach (again for some specific reasons, but that would

How to add comments to an Exuberant Ctags config file?

删除回忆录丶 提交于 2019-12-03 01:10:13
What character can I use to put comments in an Exuberant Ctags .ctags file? I would like to add comments with explanations, and perhaps to disable some regexps. But I can't find any comment character which ctags-exuberant accepts! I keep getting the warning: ctags: Warning: Ignoring non-option in /home/joey/.ctags which is better than an error, but still a little annoying. I have tried # // /* ... */ and ; as comments, but ctags tries to parse them all! Here is an example file with some comments which ctags will complain about: # Add some more rules for Javascript --langmap=javascript:+.jpp -

Vim - ctags: tag not found

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use Ctags for a Zend framework project. I executed this command : ctags -R ./* ../ZendFramework/* to create a list of tags, but the problem is when I press Ctrl-] on a class or method I get this error: ctags: tag not found I checked the tags file and all classes/methods/variables are listed. The tags files is located in the root of the project. Should I load it manullay when I open a file? 回答1: Yes, you should tell Vim where to find your tags file with something like: :set tags=/path/to/tags This is not very optimal, though. This

How to automatically update tag file in vim?

浪尽此生 提交于 2019-12-03 00:49:49
问题 I use vim C++ tag file for navigation using Ctrl-]. The problem is whenever some file gets modified, the links are no longer valid and I have to re-run ctags and update the tag file. Our code base is huge and it takes quite a while for generating tag file. Is there any tool which periodically updates the tag file in background? Can I configure VIM to do the same? I use gvim under Windows. 回答1: Further to Blixtor's answer, you'll need to think a little carefully about the design of the script.

How to make cscope display full file paths during search

醉酒当歌 提交于 2019-12-03 00:28:00
When I search for a C symbol or global definition using cscope , it displays the file-names and line numbers. I would like to see the full file-paths so that I can jump to my arch specific file. For example, when searching for global definition of __switch_to on cscope build on Linux code-base, I get: Global definition: __switch_to File Line 0 process.c 297 struct task_struct *__switch_to(struct task_struct *prev, 1 switch_to.h 44 #define __switch_to(prev,next,last) do { \ 2 process.c 202 struct task_struct *__switch_to(struct task_struct *old, 3 process.c 400 struct task_struct *__switch_to

关于ctags的使用

匿名 (未验证) 提交于 2019-12-02 23:38:02
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shenlong1356/article/details/91360002 第一步:首先安装ctags sudo apt-get install ctags 第二步:在你要编辑的源码目录下 ctags -R 注意:这个源码目录就是你要编写代码的目录,不是其它的目录,执行ctags -R 然后会生成一个tags文件,其实这个tags文件就是你的编码的所有文件的索引 (比如变量索引,函数索引) 注意::只能生成全局变量和函数的索引,不能生成局部变量的索引,对于局部变量可以用gd命令查找,高亮,取消高亮:noh 文章来源: https://blog.csdn.net/shenlong1356/article/details/91360002

Installing Exuberant Ctags on Windows (Vista and XP)

匆匆过客 提交于 2019-12-02 18:02:24
I want to use Exuberant Ctags on Vista (and probably the XP laptop) at work; no choice about the OS. I'm use GVim instead of the Flex Builder recommended by my co-worker, because the FB is buggy and doesn't do what GVim does, anyway. I got the zip file here . The Ctags install file says, among other things: mk_bc3.mak For MSDOS using Borland C/C++ 3.x mk_bc5.mak For Win32 using Borland C++ 5.5 mk_djg.mak For MSDOS using DJGPP Gnu GCC (better to follow Unix install) mk_ming.mak For Win32 using Mingw32 mk_mvc.mak For Win32 using Microsoft Visual C++ I don't really understand what all that means

Is there an alternative to ctags that works better? [closed]

蹲街弑〆低调 提交于 2019-12-02 15:08:23
I have just discovered the taglist plugin for vim, and read about how to use it with ctags . However, disappointingly ctags is a very simple parser. Is there an alternative that is more complete? Specifically I'm looking for something that: expands #define(x, y) x ## y style macros for function declarations processes #include statements allows include paths to be specified for dependencies I see that clang provides a programatic api for accessing the c AST, so surely this isn't terribly hard to do? Has someone already done it? -- Edit: These ones don't cut it: clang_indexer - Doesn't compile;