Snippets Commands
February 20, 2023
Last updated on August 2, 2026
Snippets are bits of content that can be inserted onto a page and provide repeatable and standardized elements that make editing easier and faster. See also My Snippets to learn how to capture your own snippets for reuse.
- Boxes
- Breadcrumb
- Calendar
- Create Journal
- Divider Lines
- Emoji
- Sortable Date
- Status
- Table of Contents
- Expand/Collapse
───────────────────────────────────────────────────────────────────────────────────────────────────
Boxes
Code Box
Default shortcut is F6
Inserts a code box with heading and area for your code. Use the Paste Rich Text command to paste syntax-highlighted code directly from Visual Studio. By default, text colors are based on the page background color.
To wrap content already on the page, select the content before clicking this command or pressing F6. The selected content will be wrapped inside a new code box. If the background color of all of the selected text is dark and the page background is light then the shading of the code box is set accordingly; similar if the background color of all of the selected text is light and the page
background is dark.
|
Code |
|
/// <summary> /// Close this file and release internal resources. /// </summary> protected virtual void Dispose(bool disposing) { if (disposing) { if (!isDisposed) { if (writer != null) { writer.Flush(); writer.Dispose(); writer = null; }
isDisposed = true; } } } |
If text copied from Visual Studio is pasted as plain text instead of rich text when using the Paste Rich Text command (Ctrl+Alt+V) then look at the VS Tools... Options... Text Editor... Advanced, and tick the box Copy rich text on copy/cut.
Info, Notes, and Warning Boxes
Inserts an information, Notes, or Warning box with fully customizable headers and content. These snippets are actually just nested tables.
To surround content already on the page, select the content before invoking one of these commands.
|
|
|
Text Box
Default shortcut is Alt + F6
Insert a single-cell table. To surround content already on the page, select the content before invoking this command. This table cell will shrink to the size of the selected content if it is not as wide as the page.
────────────────────────────────────────────────────────────────────────────────────────────────────
Below are the standard snippets provided by OneMore.
Breadcrumb
Adds a breadcrumb - location path - at the top of a page specifying its hierarchical path within the notebook. If the page is moved or the breadcrumb was deleted, rerun this command at any time to update the breadcrumb or add it again.
For example, the breadcrumb for this page is the following, where the notebook and section are independently hyperlinked.
Commands → Snippets Commands
Calendar
Inserts a monthly calendar for a selected month in either large or small format. The small format is good for a quick look at a month. The large format is good for entering brief daily notes.

The Indent calendar option will indent the calendar beneath the header, allowing the header to be collapsed
Create Journal
Generate a set of dated journal pages for a given month. Pages can be added to the current section or a new named section for journal entries. You can choose to include or exclude pages for Saturday and Sunday. Custom hashtags can be applied to each page for easier searching later on.

Divider Lines
Double Horizontal Line
Adds a double-width horizontal line below the current paragraph
═════════════════════════
Horizontal Line
Adds a horizontal line below the current paragraph
─────────────────────────
Emoji
Inserts one or more selected emojis. The emojis are symbols selected from the Segoe UI Emoji font. One recommended use is to prepend your page title with an emoji, which will then show up in the page panel for quick identification.

Sortable Date
Default shortcut is Ctrl + Shift + D
Inserts the current date in the form yyyy-mm-dd. One common use case is to prefix the title of a new page with the current date so it is easy to sort and visually identify pages according to the entered date.
Status
Insert colored status labels similar to the Status macros found in Confluence. These are not as smart as the Confluence macros but instead are just simple text with a highlight background that are fully editable inline.
STATUS STATUS STATUS STATUS STATUS
───────────────────────────────────────────────────────────────────────────────────────────────────
Table of Contents
There are three separate table of contents commands
- Table of Contents of all headings on this page
- Create or update a page with links to all pages in the current section
- Create or update a page with links to all sections in the current notebook, optionally with pages in each section
The OneMore ribbon has a split button. The main part of the button opens the Table of Contents dialog. The drop-down menu gives access to the section and notebook functions.
Table of Contents (Page)
The Table of Contents command generates a table of contents based on both standard headings and custom user-defined headings where each line is hyperlinked to its heading and indented according to its heading level.

Sample output:
Table of Contents
. . Heading 2
. . . . Heading 3
|
Table of Pages in Section and Table of Sections in Notebook
These two commands are similar in that they create or update a page, positioned as the first page in the section. The first maintains a page with a list of pages in the current section, optionally with text previews and headings on each page. The second maintains a page with a list of sections in the current notebook.
|
|
|
|
The Update page date and time is a special feature that updates the date/time stamp on each page whenever you create or refresh the listings. This can be used to "mark" the pages.
───────────────────────────────────────────────────────────────────────────────────────────────────
Expand/Collapse
Inserts a collapsible section at the current position on the page. This can be used to hide secondary or sensitive information on your page. This snippet includes a single-cell table to which you can add content.
|
|
|
───────────────────────────────────────────────────────────────────────────────────────────────────
My Snippets
OneNote comes with pre-defined snippets listed below. But you can create new snippets from your own custom content using the My Snippets commands.
|
Save New Snippet
Saves the selected content as a new custom snippet with its own name and adds it to the My Snippets menu.
If the snippet contains the exact text {SNIPPET_BODY}, including the curly braces, then that token is replaced with selected content on the page, if there is a selection. Otherwise, the snippet will be inserted exactly, without any substitutions.
Snippets can also contain a special tag to insert the current date/time: {=DATETIME(format)} where format is a valid .NET DateTime format string. Standard formats are described here. Custom formats are described here.
Here are examples of a couple of common formats you can use.
|
Snippet Tag |
Description |
Example |
|
{=DATETIME(f)} |
Full date and time |
Saturday, October 25, 2025 8:14 AM |
|
{=DATETIME(dd-MMM-yyyy)} |
Date |
25-Oct-2025 |
|
{=DATETIME(MMMM dd, yyyy)} |
Long date |
October 25, 2025 |
|
{=DATETIME(T)} |
Long time |
8:17:00 AM |
Manage My Snippets
Open the Settings dialog where you can rename or delete saved snippets.
Expand Snippet From Name
Default shortcut is Alt + F3
While you can insert a snippet from the Snippets/My Snippets menu, a quicker solution is to type the name of a snippet, select the name, and then press Alt + F3. This will immediately replace the selected name with the contents of the snippet.
#omwiki #omcommands
© 2020 Steven M Cohn. All rights reserved.
Please consider a sponsorship or one-time donation to support ongoing development
Created with OneNote.

