ummm so there's no ident facilty for geany ?
Not built in, but you can use "Send Selection to Command" to make something workable using an external formatter, or write a plugin to do it, similar to my code-format plugin but for your preferred language(s).