What is geany?C++:
If you don’t use C much, you better switch places of C and C++ in filetype_extensions.conf (
“Tools” > “Configuration Files”).
Otherwise .h files will be opened with C syntax highlighting by default!
Setting up a project:
Simply click on
“Project” > “New” and create a new .geany-project.
Open a C++-File and click on
“Project” > “Properties”.
Project:
Name=
MegaglestBase Directory=
/pathtoMegaglest/megaglest-source/source/File Pattern=
*.cpp *.h CMakeList.txt *.uiBuild:
Label=
BuildCommand=
./build-mg.shWorking Directory=
%p../mk/linuxLabel=Run
Command=
./$(zenity --list --radiolist --column "start" --column "application" TRUE megaglest FALSE megaglest_editor FALSE megaglest_g3dviewer FALSE megaglest_tests)Working Directory=
%p../mk/linuxZenity is further GTK application, which offers simple dialogs.
This way you won’t get all megaglest methode names completed, you still need to open those classes.
But since Geany does not do a conext based completion, it’s better this way.
Interesting plugins:
- GProject for better project management (search, switching between .h and .cpp...), uses settings of the built in feature
- GeanyVC for git
- ClassBuilder for new classes (built in)
- CodeNav for switching between .h and .cpp files