Desktop code block markdown model and preview mode are not aligned

When I edit a code block in Markdown mode, it doesn't display the size of the spaces correctly, causing me to have to make the comments in the code very ugly to align them.

Is there any workaround for this?

THX ^.^