

OneNote is an amazing tool, and I often paste syntax highlighted code there for future reference. The result looks beautiful and the red squiggly spell-checking lines will go away when the email is sent to the recipients. To paste with a dark background, the procedure is a bit more involved (but may be worth it to you for the aesthetics if you’re like me.

We’re done! The tab/spacing indentation is retained and thus we don’t need to paste it through Word first. Copy the selected code from VS Code and paste it into the Outlook email message you are composing.Once again, we’ll first cover pasting code containing a white background. Using Outlook to share syntax highlighted code can be very helpful, especially in the corporate world. The red squiggly spell-checking lines go away when viewing the PowerPoint presentation in slide show mode. We are ready to make beautiful presentations! Adjust the line spacing to one since it comes over from Word with a line spacing value that is less than one.When pasting, be sure the paste option is set to “Keep Source Formatting”. Copy the text from Word and paste it into PowerPoint.If we paste it directly to PowerPoint, we lose the tabs/spacing indentation. Copy the selected code from VS Code and paste it into Word.For the “Dark+ (default dark)” theme, for example, the background color is (Red = 30, Green = 30, Blue = 30). Fill the text box with a background color that matches the VS Code theme.The result will look something like this: Change the font to “Consolas” or other monospaced font of your choice, and increase the font size as desired.Adjust the line spacing to 1.0 since it comes over from Word with a line spacing value that is less than one.If we paste it directly into PowerPoint, we unfortunately lose the tab/spaces indentation.

Here are the steps for syntax highlighted code with white backgrounds: We want to be able to share our syntax highlighted code in presentations so let’s run through the steps to make this happen in PowerPoint.

If you typically use a dark background theme, but want to use a white background theme for communication, you can quickly swap VS Code themes using `` and selecting “Light (Visual Studio)”, for example. Working with dark background text requires additional steps. The result looks better with a narrower width:
VISUAL STUDIO CODE THEME FOR FREE
How awesome is that? Word is bit problematic due the red squiggly lines it provides for spell checking, but we just achieved color syntax highlighting for free with very little effort on our part. If you are using the “Light (Visual Studio)” theme, the result will look something like this: To copy color syntax highlighted code into Word, copy your selected code from VS Code and paste it into Word. We’ll see this in action with various applications and provide some additional steps to maximize the beauty of your syntax highlighted code. How is this accomplished? It’s very simple! When you are in VS Code copy your selected code to the clipboard, VS Code brings the color syntax formatting along for the ride so the formatted text can be pasted into applications such as Word and Gmail. This will prove useful whether you are using JavaScript, JSON, HTML, CSS, TypeScript, Markdown, C++, Java, PHP, Python, Go, T-SQL, XML, C# or a host of other languages and data formats that Visual Studio Code supports.
VISUAL STUDIO CODE THEME HOW TO
In this article, we learn how to copy from Visual Studio Code with color syntax highlighting to various other applications including Word, PowerPoint, Outlook, OneNote, and Gmail to achieve beautiful, clear code samples for documentation, presentations, and general communication.
