How to preserve indentation when pasting code here? (solved)

When I paste code from a VisualStudio project here (using [ code][ /code] tags) my indentation gets partly messed up. It stays intact when I paste into Notepad++ for example.

How do I paste code properly here so the indentation stays intact ?

Either you indent your code by 4 spaces (and a newline before the block), or tripple ` in a row before and after the block. That way you don’t have to manually indent every line.

I think this one is used:


1 Like

Tripple ` in a row works fine, thank you.