Hate losing formatting when pasting in code into OneNote. Would love to have color highlighting, line numbers, etc, stay when pasting in.
James Salisbury commented
To get the syntax and highlighting you can install productivity power tools extension in visual studio. Once installed in VS editor go to ->Tools->Options->Productivity Power Tools->Html copy -- there is an option ~ before code snippet with settings you can change like the back ground color if your using the dark theme.
almost 6 years later, still no sign of it.
I use Visual Studio Code (Microsoft), and OneNote App (Microsoft) - Does Microsoft not talk to each other?
I think the formatting is OK when pasting from the default Light+ theme in Visual Studio Code to OneNote with light background, but I would like the colors to be kept when copying from VS Code in dark mode and pasting to OneNote in dark mode.
This is truly needed...like yesterday!
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