How to format selected text in monospace in Apple Notes app

formattingnotes.app

When I select a text and hit Command+Shift M, It format the whole line instead of the selected text.

Example:

This is a code

expected:
This is a code

What I have:
This is a code

Best Answer

I guess you can't change it. MonoSpace falls under Paragraph Style in Notes and it implies for whole sentence or paragraph.

enter image description here