Cscope + Notepad++ Coding nirvana!

Loved Cscope on cygwin, but hated the fact that you anything you select will open up in Vi, and then do some keyboard voodoo to get back to the cscope window?

Or are you one of those fan of notepad++ awesomeness but love the way cscope hunts for stuff for ya?

Fear not, there is a way both your sweethearts can now play with you, all at the same time for an awesome threesome πŸ˜‰

Just export these lines before you fire up Cscope

export CSCOPE_EDITOR="/cygdrive/c/Program Files/Notepad++/notepad++.exe"
export CSCOPE_LINEFLAG="-n%s"

Please note : Change the CSCOPE_EDITOR path to where your notepad++ is currently residing. For your convenience, I have included the path that is default for Normal install of notepad++.

Better still, put it in a script file (or perhaps bashrc).

Got a better suggestion? Post a comment πŸ™‚

Advertisements

2 thoughts on “Cscope + Notepad++ Coding nirvana!

  1. Well, unless you give me details as to what you have tried, I cannot help you.
    I hope you have CSCOPE_EDITOR variable in double quotes to the correct location where notepad++ resides.
    Also, I hope we are still talking about Cygwin in windows.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s