3

< C-\ >Cを使用して 1 つの関数の呼び出し元を取得し、1 つの数字を押すと 1 つの呼び出し元にジャンプできます。しかし、別の発信者にジャンプしたい場合は、< CT>を押してジャンプし、もう一度 < C-\ >C を押して発信者リストを取得する必要がありました。cscope は履歴リストの記録をサポートしていますか?

4

3 に答える 3

4

VIMを使用している場合は、クイックフィックスを試すことができます

:secscopequickfix=s-,c-,d-,i-,t-,e-

:cn :cpで次または前の結果に移動する

:cwを使用して、cscope の検索結果を表示します。

于 2014-04-10T14:25:47.303 に答える
3

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 cscope queries.

he cscopetag:

If 'cscopetag' set, the commands ":tag" and CTRL-] as well as "vim -t" will always use |:cstag| instead of the default :tag behavior. Effectively, by setting 'cst', you will always search your cscope databases as well as your tag files. The default is off. Examples:

:set cst
:set nocst

That way you you just

:tnext
:tprev

like always.

Alternatively, you can use

于 2011-11-21T07:58:24.967 に答える
1

実際の経験はありませんcscopeが、見てみましょう:help cscopequickfix: このオプションを設定すると、<C-\>c結果はクイックフィックス ウィンドウに表示されるはずです。

于 2011-11-21T07:47:34.430 に答える