News:

Check out the latest MegaGlest news on our e-mail newsletter (subscribe), Twitter, Facebook and Google+.

Main Menu

Setting up Geany for MegaGlest on GNU/Linux

Started by Baŝto, 10 August 2014, 13:10:44

Baŝto

What is geany?

[h1]C++:[/h1]

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!

[h2]Setting up a project:[/h2]

Simply click on "Project" > "New" and create a new .geany-project.

Open a C++-File and click on "Project" > "Properties".

[h3]Project:[/h3]
Name=Megaglest
Base Directory=/pathtoMegaglest/megaglest-source/source/
File Pattern=*.cpp *.h CMakeList.txt *.ui

[h3]Build:[/h3]
Label=Build
Command=./build-mg.sh
Working Directory=%p../mk/linux

Label=Run
Command=./$(zenity --list --radiolist --column "start" --column "application" TRUE megaglest FALSE megaglest_editor FALSE megaglest_g3dviewer FALSE megaglest_tests)
Working Directory=%p../mk/linux

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

[h2]Interesting plugins:[/h2]

  • 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