Hate losing formatting when pasting in code into OneNote. Would love to have color highlighting, line numbers, etc, stay when pasting in.
This is so important, i am fighting with myself how to tame both worlds... Current workaround is to create code related chunks in markdown and i use Typora for it, however when i want to use my pen i have to go back to OneNote, i just want to keep all notes in one place - code and life related..
The workaround is to paste into Microsoft Word, and then copy and paste from Word into OneNote. Unfortunately, some formatting is not kept.
I contacted Microsoft technical support via chat, and sent them the below links and stats. The support person said they would tell their manager, and that they would raise an internal ticket to get the issue examined, and would get their work colleagues to vote on it.
This has 2,103 views and 37 upvotes
When I copy a code block from VS code to outlook mail or word, it keeps the formatting and the backgroud theme, just implement the same for Onenote would be great.
It's really annoying to have to copy paste from SQL Server Management Studio, into word, and then copy paste from word into onenote just to keep the formatting.
Adnan Alsada commented
**** Yeah! That would make OneNote great for every text!
please update this feature
Edward Langley commented
Use the formatting templates from VS Code
OMG YES PLEASE! A code editor for OneNote would be amazing. If you could integrate it with node.js and bing so that I could test code within a sandbox in OneNote I would never use anything else. I currently use OneNote to save snippets of code to reuse on different projects, but I find the spellcheck/formatting to be annoying to get it to be "code readable", and am considering switching to a different program (like brackets) for my code note taking. The reason I've stuck with OneNote though is that I don't have to "comment" out my comments, but what would make my life way more simple is if I could insert a "code box" into my OneNote page that left me copy/paste code into that left the formatting alone, so that I could still write notes regularly above/below the codebox but the code inside the codebox remained "code formatted."
If I could then test execute that same code with node.js into a bing browser window, then I'd be the happiest windows developer on earth.
Jeff AvecNom commented
one day we wont need word for developer install procedure / deployment procedure :) please add the code formatting option
Joshua Harms commented
I'd be happy with just disabling spellcheck and auto-capitalization inside a code block, but highlighting, line numbers and so on would be very welcome.
Please add Code Blocks w/Syntax Highlighting OR Markdown support.
Quiver (OSX only) is the best Programmer's Note App on the market. However, I develop in Windows and OSX, so I am stranded when on the Windows side of things.
It's 2017, how is this not supported yet? OneNote (or Evernote, whoever adds it first) would easily be the best note app with support for Programmers!
It would be nice to have a feature like repl.it, but native. I don't want to have to be changing to online to view the code. I don't need the code to run. If I change the code on repl.it, I have to share a new link and delete the old one. At least make it so that it updates automatically.
I'd like to add that the Code Editor or section to store code snippets should also include a dictionary for code so it doesn't mark a mistake when writing code.
This feature should support PowerShell formatting (ISE) in addition to other common scripting languages.
please work on this
Martin Lavigne commented
Yes, not just a formatter but a control that keep the original code and render a formatted version tailored with many properties (Resharper Clean-Up!). We should be allowed to change the original code to have the rendering updated automatically.
Reece Bradley commented
+1 for format as code, so will be nicely formatted and won't be tones of red underlined text.
In *INTERNET EXPLORER* [Windows 10 Creator's Update], the "right-click" context menu has an option (at the bottom): Send to OneNote. **THIS WORKS** (syntax coloring *IS* preserved!).
For some reason, **EDGE** does *NOT* have this on it's "right-click" context menu! **PLEASE 'MERGE' THIS** from IE to EDGE!
Interesting: I find that SQL Server Management Studio (SSMS) *DOES* preserve the syntax coloring via cut-and-paste [Yay!].
Also, Visual Studio Code, Visual Studio 2017 Community, & SSMS could benefit from this "right-click" context menu as well.
PS: Thanks to Gustavo -- July 23, 2015 03:01 -- his workaround through MS Word works!