intellij-ideacopy-pasteonenote

Intellij - copy paste code to Onenote 2016 lost spaces with formatting


When I copy the code and comments from Intellij to Onenote. Surprisingly it lost its spaces. Is there any way to solve this problem. Please see screenshot below

Intellij to Onenote -Copy paste with formatting

what I am looking for is with formatting and indentation.


Solution

  • A short term workaround (this has worked for me with other IDEs) is to paste the code in another application like Microsoft Word, and then paste the code in OneNote.