There’s a single button (and shortcut) for both preformatted text types.
If you haven’t selected any text, it will create an inline code.
If your selection is no more than 1 line, it will create an inline code.
If your selection contains a line break, it will create a code block.
As far as I know, and unfortunately, not from the interface.
See: