Geany intellisense like functionality for C++

tambalolo picture tambalolo · Sep 22, 2012 · Viewed 7k times · Source

Is there a plugin for Geany that will provide an Intellisense-like functionality for C++? Like when you press ctrl + spacebar all functions/members of the included libraries are shown or listed as hints? or when you type a few letters all methods or variables starting with those letters are listed?

I know there's code completion in Geany, but its not like Intellisense of VS, where all members/functions of the linked libraries are show when you press ctrl + spacebar.

Answer

eddy147 picture eddy147 · Dec 18, 2012

You have a couple of options.

If you have the file open where the class is declared, then code completion works out of the box. So suppose you are in class Patient, and it calls Treatment->getActivitiesForPatient(this), and if you have the Treatment class open, it works.

There is also the option to create a tags file in Geany, see http://www.geany.org/Download/Extras#tags. (Note that for windows 7 the directory to put your tags file is AppData/Roaming/geany/tags.)

An example how to create a tags file:

$ your/application/root>geany -g /tmp/mytagsfile.tags $(find . -type f -name '*.php')