Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 920
Ragavan Rajan Avatar asked Jan 24 '18 01:01

Ragavan Rajan


People also ask

Can you copy and paste in OneNote?

In Microsoft OneNote, you can cut, copy, delete, or move any selection of ink strokes.

How do I paste from clipboard in OneNote?

To paste text into a noteOn the Home tab of the ribbon, in the Clipboard group, click the Paste button. Press Ctrl+V.

How do I copy and paste in Intellij?

Set the caret anywhere in the line to copy the whole line, or make a selection to copy. Press Ctrl+C or choose Edit | Copy from the main menu .

Is there a way to keep the formatting on OneNote?

Well unless you’ve got a different OneNote (mine is from Office 2016), it already keeps the formatting. I also tried it on the Windows 10 OneNote and it did the same. The Keep Source Formatting option on the right arrow is there (as another commentator said) but on mine, it’s enabled by default. Can anyone learn how to code?

How do I copy and paste code from R to one note?

Copy and pasting into One Note from R, while keeping the same font, is relatively easy. Just set the default font in One Note to the same format your code is in. For me, try to use a True Type font. They are far easier to read than other font types. Hope this helps!

How do you store your R code in one note?

I used it to store my R code, my statistical analysis output from R and my R graphs. Copy and pasting into One Note from R, while keeping the same font, is relatively easy. Just set the default font in One Note to the same format your code is in. For me, try to use a True Type font. They are far easier to read than other font types.

Is there a OneNote plugin for VSCode?

Or there is a vscode plugin named S.T.O.N.E, you can use it. Show activity on this post. As mentioned by @rambler OneNote ignores pasted spaces, the solution is converting all spaces to tabs in your document using:


1 Answers

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.

I'd also encourage you to give OneNote feedback via uservoice: https://onenote.uservoice.com/forums/327186-onenote-for-windows/suggestions/38038366-intellij-copy-paste-code-to-onenote-lost-spaces

like image 184
Jorge Aguirre Avatar answered Oct 12 '22 13:10

Jorge Aguirre