Gtags and Ctags based search for Notepad++


[Screen Shot]


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


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).

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)

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).


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