This is how the code is copied to onenote with paste option : keep source formatting
If I select paste option : "keep text only", the indentations are preserved (and syntax highlighting is gone as expected)
If I copy the code to word with paste option : keep source formatting, it is copied perfectly preserving both indentation and syntax highlight.
Why is indentation lost in oneNote only?
Office version - 2013
VS code version - May 2017 (version 1.13)
OS - Windows 10 Pro