cscope

bring color to cscope output in vim?

感情迁移 提交于 2019-12-09 14:54:54
问题 I am using vim7.4. cscope output in vim is all white. can it be made more colorful? I tried cecscope, which uses quickfix to bring color to vim. But the output of it is not small-screen friendly. it is not that useful when using a laptop. so is there some other way to add color to cscope output? I like the ctags output in vim, or can cscope have the same style? Thanks. 回答1: The default editor for Cscope is vi not VIM. Vi has no option for Syntax highlighting and other features of plugins etc.

What cscope reference card do you use? [closed]

╄→尐↘猪︶ㄣ 提交于 2019-12-09 12:18:45
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . What is the standard/best reference card for cscope shortcuts/usage that I can print for quick reference? 回答1: The easiest way I can

How to put cscope output in Vim quickfix window?

安稳与你 提交于 2019-12-08 17:38:09
问题 I want to redirect output from cscope to Vim quickfix window. The glue part is easy enough, but I currently stuck at errorformat. Here's an example from cscope output (cscope -L -1 bar): Format: "filename scope linenumber sourceline" Example: "abc.cpp foo 25 bar()" This means inside foo(), at line 25 in abc.cpp there is a call to bar(). efm = %f\ %*[^\ ]\ %l\ %m works but the scope information is lost. For example: Input: "abc.cpp foo 25 bar()" becomes Output: "abc.cpp |25| bar()" What I want

Does cscope support history list recording?

泪湿孤枕 提交于 2019-12-07 23:33:35
问题 I use < C-\ >C to get the callers of one function, then I can press one number to jump to one caller. But if I want to jump to another caller, I had to press < C-T> to jump back, and press < C-\ >C again to get the caller list. Does cscope support history list recording ? 回答1: If you are using VIM, you can try quick fix :se cscopequickfix=s-,c-,d-,i-,t-,e- Navigate next or previous result with :cn :cp Use :cw to display cscope search result. 回答2: For one thing, you can use :se cscopetag or

Does cscope has search history or search query stack feature?

此生再无相见时 提交于 2019-12-07 07:10:23
问题 I usually dig in the c source code with cscope from method to method more than 4-5 level and I have to step between the methods back and forth. How can I see the search history in cscope so I don't have to remember the previous method name. or it will be better if it's a stack. 回答1: Yes it does. The help explains this. [ Press ? in the main window.] Ctrl+b - Step back in search history. Ctrl+f - Step forward in search history. 回答2: I primarily use the cbrowser GUI frontend http://sourceforge

How to generate cscope.files from CMakeLists.txt

对着背影说爱祢 提交于 2019-12-06 11:29:21
I'm using CMake to build my code. CMakeLists.txt contains the list of all the .C or .CPP files and all the include directories. How can I implement CMakeLists.txt so that I can have a make option that generates cscope.files for me containing the list of all the .C and .CPP (or .CXX) files and also all the .h files from the include directories in it? For e.g. I should be able to run make cscopefiles and it will generate cscope.files for me. Or is there already such an option? You could also extend Fraser's answer with a configure_file call, so the final file only changes when its content has

Does cscope support history list recording?

痞子三分冷 提交于 2019-12-06 09:47:43
I use < C-\ >C to get the callers of one function, then I can press one number to jump to one caller. But if I want to jump to another caller, I had to press < C-T> to jump back, and press < C-\ >C again to get the caller list. Does cscope support history list recording ? If you are using VIM, you can try quick fix :se cscopequickfix=s-,c-,d-,i-,t-,e- Navigate next or previous result with :cn :cp Use :cw to display cscope search result. For one thing, you can use :se cscopetag or :lcscope .... :lopen With the latter you can even use :lolder and :lnewer to switch back and forth between previous

How can I get cscope results to appear in a split window in gvim7?

…衆ロ難τιáo~ 提交于 2019-12-06 02:19:25
I have tried the tutorial here: Vim/Cscope tutorial . After changing the @ 's in the cscope_maps.vim file to SPACE I got Ctrl-SPACE s to launch cscope in gVim. However, it takes over the whole window rather than splitting the window for the cscope info. I then tried as suggested in the comments to the cscope_maps.vim file changing nmap <C-SPACE>s :scs find s <C-R>=expand("<cword>")<CR><CR> to nmap <C-SPACE>s <C-W><C-S> :cs find s <C-R>=expand("<cword>")<CR><CR> because it appears that my gVim does nto support the :scs command. However, this still displays the cscope info in a full window,

Does cscope has search history or search query stack feature?

ぃ、小莉子 提交于 2019-12-05 17:30:58
I usually dig in the c source code with cscope from method to method more than 4-5 level and I have to step between the methods back and forth. How can I see the search history in cscope so I don't have to remember the previous method name. or it will be better if it's a stack. Yes it does. The help explains this. [ Press ? in the main window.] Ctrl+b - Step back in search history. Ctrl+f - Step forward in search history. I primarily use the cbrowser GUI frontend http://sourceforge.net/projects/cbrowser/ to cscope and it has a drop-down box where it remembers the last 15 queries. Alternatively

emacs intellisense

亡梦爱人 提交于 2019-12-05 10:47:45
问题 I know this has been discussed a lot of times but is there any nice how-to for c/c++ intellisense in emacs? I have never been able to set up cedet properly. Right now I am working on a maintenance project with a huuge code base and it is very difficult to manage without proper intellisense. Currently I am using vim with ctags/cscope and omnicomplete features for intellisense which works great; but I would like to get things to work with emacs. 回答1: If you cannot get CEDET working, then you