Wednesday, March 6, 2013

How to set the default editor for cscope

set the enviroment variable CSCOPE_EDITOR in the shell profile.

Eg:

in .bashrc

export CSCOPE_EDITOR=vim

or

export CSCOPE_EDITOR=emacs

in .cshrc

setenv CSCOPE_EDITOR vim

or

setenv CSCOPE_EDITOR emacs