question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VScode copy to Onenote missing blank line

See original GitHub issue

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:1.61.2 (Universal)
  • OS Version:MacOS 11.5.2 (20G95)

Steps to Reproduce:

1.in vscode use Markdown format like this

testblank1
testblank2

testblank3
testblank4

2.copy to onenote

testblank1
testblank2
testblank3
testblank4

blank row will be missing

  1. macos editor、sublime…etc. it dont have this issues

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dev-manuelcommented, Nov 23, 2021

This desired behavior can only be enabled by the developers of OneNote, as the program renders the formatted content incorrectly when pasting. (Always one blank line per <br> sequence missing)

0reactions
LOVECHENcommented, Nov 22, 2021

After researching for a solution I found out that there is a setting that could resolve this issue. In fact, there is a setting in vscode “editor.copyWithSyntaxHighlighting” that can be set to false in order to move only the raw version of the selected text to the clipboard when copying it from the editor. This way OneNote won’t receive a formatted text and as conclusion it won’t be able to render it the wrong way. Does this help?

thx for help, it’s a good solution, but i want keep the color render and syntax. it nice to read and archive. for example in vscode iShot2021-11-22 17 52 59 to onenote knowledgebase archive iShot2021-11-22 17 53 39

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copying code from Visual Studio Code to OneNote loses tab ...
If I copy the code to word with paste option : keep source formatting, it is copied perfectly preserving both indentation and syntax...
Read more >
Pasting code into Onenote skips empty lines and doesn't indent
Hello, I'm attempting to copy a large code from VS Code to OneNote, however, it automatically removes empty lines and does not respect ......
Read more >
Restrict Blank Line Cut or Copy while coding in Visual Studio
Navigate to Tools -> Options -> Text Editor -> All Languages / C# , under settings unchecked the “Apply Cut or Copy commands...
Read more >
Onenote: How to copy code from vscode to onenote without ...
I have tried the solutions I found on internet like - 1) convert indentations to tabs in vscode 2) copy the code first...
Read more >
Move from Evernote to OneNote - Evernote Forum
If you have a relatively small number of notebooks and notes it is not particularly onerous to manually adjust (copy & paste) even...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found