Yes, that is what I’m looking for. Thank you. I tried it out, but the user experience around it is suboptimal.
For example, if I highlight word/words and turn it into inline code, there is no way to remove that formatting. I expected the same command to toggle between the two states. The only way is to Undo it, and for some reason it takes multiple undo to remove that formatting.