Gtags and Ctags based search for Notepad++


ScreenShot
Automatic Installation
Manual Installation
Add binaries to path
Generate/Update Tags
How to use the plugin for reference search
How to use the plugin for definition search
Source Code

Automatic Installation

The easiest way to get this working is, from inside Notepad++, Plugins->Plugins Manager-> Show Plugin manager, select and install “Gtag Search”.

If you do automatic installation, skip the below "Manual Installation" step and proceed to "Generate/Update Tags".


Manual Installation

Download latest Notepad++

Download ctags ()and GNU Global and copy the exe's to plugins\gtagfornplus folder.

Copy the dll to notepad++ plugin directory.

Create a directory gtagfornplus in notepad++ plugin directory.

Copy the gtags/global binaries and ctags binaries to "gtagfornplus" directory created (in above step).

Add binaries to path

You might have to add the full directory path of "gtagfornplus" to Windows environment. (Right click "My Computer" -> Advanced -> Environment variables -> System Variables -> select PATH from list item -> press edit)

Generate/Update Tags

In a command window, go to your source root.

Run gtags, this should generate the global tag DB.

Run ctags -R, this should generate the ctags tag db.

How to use the plugin for reference search


Make sure the above two steps for tags db generation is completed.

Open the source file in notepad++ and use ctrl+alt+c for reference search. The files which reference the symbol are listed in first window.

Double click on an item and the actual references in file gets populated in second list box.

Double click an item on the second list box to open the actual reference.

How to use the plugin for definition search


Make sure the above two steps for tags db generation is completed.

Open the source file in notepad++ and use ctrl+alt+b for definition search. The files which define the symbol are listed in first window.

Double click on the item in list box and the file where the symbol is defined is opened (and cursor points to the place where symbol is defined).


Source Code

You can find the latest code here

The source code compiles correctly in Visual Studio C++ 2008. Am not sure about other versions.

ScreenShot