When editing a confluence page you can use the open curly brace to get a shortcut menu for the macros.
For exampl {Code
will select the code macro.
If you insert the code macro and double click on it, you can set the language, and title etc.
Is there a shortcut to set these properties? Something like typing the following:
{Code Block | Language = sql | title = Some code example
This is sort of how it looks when its manually configured anyway: