Shortcut for "code block" macro in Confluence editor

Mirage picture Mirage · Nov 26, 2012 · Viewed 17.2k times · Source

We use confluence for documentaion but i find very time consuming to select the code macro; it's a 5 step process. Even typing the macro by hand is not efficient.

In the Stack Overflow editor all we have to do is select the text and press a button or hit ctrlK, and the text is formatted as code.

Is there a way to do this in Confluence?

Answer

jimmybondy picture jimmybondy · Nov 26, 2012

even typing by hand is also not efficient

I use the code macro extensively and always use the autocomplete feature by typing { and choosing 'Code Macro' from the list (It's enough to type co for the code macro). This is a very efficient.

Of course a keyboard shortcut would be faster, but there is no shortcut for the code macro. (AFAIK there is no keyboard shortcut for a specific macro at all)