Tip - Best Way to Paste in Code



If you use your Agenda notes for programming code, like I often times do, then this tip will help you.

I have found that when I paste in code, it add an extra empty line between each line, which detracts from its usefulness for me.

Here’s what I found that works:

Copy the code
In an Agenda note, choose the Preformatted Style
Paste in the code without formatting (Command-Option-Shift-V)

This should have the desired effect of the code pasted in without extra lines.


Good tip. That is indeed the intended way to paste code.

Note that when you paste normally, it doesn’t add an extra line, but it treats each line as a new paragraph, and paragraphs in Agenda have extra spacing.