Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>XNOTE EditorNew to Visual Studio Code? Get it now.
XNOTE Editor

XNOTE Editor

DanielMeixner

|
1 install
| (0) | Free
Create a timestamped .md note with one click or a shortcut.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XNOTE (Xnote)

This VS Code extension adds a fast way to create timestamped .xnote.md notes and includes shortcuts tailored for editing those note files.

What it does

  1. Creates a new timestamped note file (e.g. 2026-09-03-10-31.xnote.md) from a configurable template. When multiple templates are defined, you're prompted to pick one each time.
  2. Adds a toolbar/context command and keyboard shortcut to create notes quickly.
  3. Adds .xnote.md-only editing helpers:
    • Insert timestamp
    • Toggle checkbox state cycle
    • Insert configurable markers (⭐, ❓, 🚩, 🔥, ❗, 📥 Input: by default)
    • Wrap selection/word with <mark>...</mark> highlight
    • Drag-and-drop file attachments (copies into an attachments folder and inserts links)
    • Paste clipboard file as attachment (fallback when native drag-and-drop doesn't cooperate)
    • Smart Enter list continuation
    • Tab-to-indent on list lines
    • Save with topic (renames the file using the second line)

Commands

  • XNOTE (newMdNote.create)
  • Xnote: Insert Timestamp (newMdNote.insertTimestamp)
  • Xnote: Toggle Checkbox (newMdNote.toggleCheckbox)
  • Xnote: Insert Star (newMdNote.insertStar)
  • Xnote: Insert Question Mark (newMdNote.insertQuestionMark)
  • Xnote: Insert Flag Icon (newMdNote.insertFlagIcon)
  • Xnote: Insert Fire Icon (newMdNote.insertFireIcon)
  • Xnote: Insert Exclamation Mark (newMdNote.insertExclamationMark)
  • Xnote: Insert Input Icon (newMdNote.insertInputIcon)
  • Xnote: Insert Configured Icon (newMdNote.insertConfiguredIcon)
  • Xnote: Update Shared Configuration (newMdNote.updateSharedConfig)
  • Xnote: Highlight Yellow (newMdNote.highlightYellow)
  • Xnote: Save with Topic (newMdNote.saveWithTopic)
  • Xnote: Paste Clipboard File as Attachment (newMdNote.pasteFileAsAttachment)

Default keybindings

  • Create note: Ctrl+Alt+N (Cmd+Alt+N on macOS)
  • In .xnote.md files:
    • Insert timestamp: Ctrl+Shift+D / Cmd+Shift+D
    • Default actions: checkbox (1), star (2), question (3), highlight (4), flag (5), fire (6), exclamation (7), Input (8)
    • All number shortcuts 1–9 and 0 can be reassigned in shared configuration.
    • Indent list line: Tab
    • Paste clipboard file as attachment: Ctrl+Alt+V / Cmd+Alt+V

Configuration

Drag and drop attachments

When you drop files into a .xnote.md document:

  • Files are copied into an attachments folder next to that .xnote.md file.
  • A markdown reference is inserted at the drop position.
  • Image files are inserted as markdown images (![filename.ext](https://github.com/opendmx/vsc-xnote/raw/HEAD/attachments/filename.ext)).
  • Other files are inserted as normal markdown links ([filename.ext](https://github.com/opendmx/vsc-xnote/blob/HEAD/attachments/filename.ext)).
  • If a filename already exists in attachments, XNOTE auto-renames the new copy (for example report (1).xlsx) and inserts the matching link.

If VS Code's native drag-and-drop doesn't cooperate for your platform/setup (for example it opens the dropped file instead of inserting a reference, or a Shift-drop only inserts a plain path), use the fallback command instead:

  1. Copy the file(s) in Finder/Explorer (Cmd+C / Ctrl+C).
  2. In the .xnote.md editor, place the cursor where you want the reference and run Xnote: Paste Clipboard File as Attachment (Ctrl+Alt+V / Cmd+Alt+V, or via the command palette).
  3. XNOTE copies the file(s) into attachments and inserts the same markdown reference as drag-and-drop would.

This command is only available in .xnote.md files.

Multiple templates

Create a .xnote-templates folder (configurable via newMdNote.templatesFolder) in your workspace root, and add one .md file per template. The filename (without .md) becomes the template's label in the picker.

.xnote-templates/
  Meeting Notes.md
  Daily Standup.md
  Retro.md
  • If there is more than one local or cached online template in total, running XNOTE (toolbar button, Explorer context menu, or Ctrl+Alt+N / Cmd+Alt+N) shows a Quick Pick to choose one.
  • If there is exactly one local or cached online template, that one is used automatically (no prompt).
  • If neither source has templates, the extension falls back to the single-file template below, then to the newMdNote.template setting.

Each template file supports the same placeholders as newMdNote.template (see below).

For example, save this as .xnote-templates/Meeting Notes.md in your repository:

# ${dateTime}

# Topic

## Attendees

## Discussion

## Decisions

## Next steps
- [ ] Follow up

Commit the template files so everyone opening the repository can use them. No settings changes are required with the default folder name. Templates are read each time you create a note, so edits apply to the next note without reloading. The new file is named YYYY-MM-DD-HH-MM.xnote.md (UTC); existing files are preserved by adding a numeric suffix. Cancelling the picker creates no file. Only .md files directly inside the templates folder are listed, not subfolders.

Multi-root workspaces: "workspace root" means the root of whichever workspace folder the new note is actually being created in (i.e. the folder resolved via newMdNote.targetFolder/the active file/Explorer selection) — not necessarily the first folder listed in the workspace. So each root folder can have its own .xnote-templates, and the picker only shows templates from the root the note lands in.

Shared online configuration

Set newMdNote.configurationUrl to an HTTPS URL for a JSON file (for example, a raw.githubusercontent.com URL), then run Xnote: Update Shared Configuration. XNOTE downloads and validates the file, caches it locally, and uses that cached version at startup. It does not check for remote changes automatically; run the command again when you want to refresh. If a download or validation fails, the previous cached configuration remains in use.

Local templates in .xnote-templates and cached online templates are both available in the template picker, with Local or Online shown as the source. The existing local template folder, legacy template file, and settings-based fallback continue to work.

The JSON file can define templates, icons, and shortcut assignments. Omitted entries keep their built-in defaults:

{
  "templates": [
    { "name": "Planning", "content": "# ${dateTime}\n\n## Input\n\n## Decisions\n" }
  ],
  "icons": {
    "attention": { "label": "Attention", "marker": "❗ " },
    "input": { "label": "Input", "marker": "📥 Input: " }
  },
  "shortcuts": {
    "1": "attention",
    "2": "input",
    "3": "question",
    "4": "highlightYellow",
    "5": "flag",
    "6": "fire",
    "7": "exclamation",
    "8": "input",
    "9": null
  }
}

Icon IDs in shortcuts refer to entries in icons. Custom icons are also selectable from Xnote: Insert Configured Icon. The built-in actions toggleCheckbox and highlightYellow are valid shortcut targets. Set a shortcut to null to disable it. On Windows/Linux the number shortcuts are Ctrl+1 through Ctrl+9 and Ctrl+0; on macOS use Cmd instead.

Settings

  • newMdNote.templatesFolder: Workspace-relative folder of selectable .md templates (default: .xnote-templates).
  • newMdNote.templateFile: Workspace-relative single template file path (default: .xnote-template.md), used when the templates folder doesn't exist or is empty.
  • newMdNote.template: Fallback template text used when neither of the above provide a template. Supports ${date}, ${dateOnly}, ${time}, ${dateTime}, ${filename}, ${isoDate}.
  • newMdNote.targetFolder:
    • activeFileFolder (default)
    • workspaceRoot
  • newMdNote.configurationUrl: Optional HTTPS URL of a shared JSON configuration; refresh is manual via Xnote: Update Shared Configuration.

Build and install locally

This extension has no build step (plain JS), so packaging just bundles the source.

  1. Install dependencies (only needed the first time, for the packaging tool):
    npm install -g @vscode/vsce
    
  2. From the extension's root folder, package it into a .vsix file:
    vsce package
    
    This produces something like new-md-note-0.0.1.vsix.
  3. Install the packaged extension in VS Code:
    code --install-extension new-md-note-0.0.1.vsix
    
    Or in VS Code: open the Extensions view → ... menu → Install from VSIX... → select the file.
  4. Reload VS Code (Developer: Reload Window) if it doesn't pick up the new version automatically.

For active development without packaging, open this folder in VS Code and press F5 to launch an Extension Development Host with the extension loaded.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft