Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Simple Markdown HeaderNew to Visual Studio Code? Get it now.
Simple Markdown Header

Simple Markdown Header

sguerri

|
90 installs
| (0) | Free
Markdown YAML header editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Welcome to simple-markdown-header

Markdown YAML header editor for vscodium and vscode

This is an extension for vscodium and vscode.

For markdown files having a YAML header, it displays a sidebar with header details.

I will enhance the extension as per my daily usage or others' feedbacks.

Main features

  • Display header items by type
  • Add a YAML header if not existing
  • Add / Remove header item
  • Update value depending the header type
  • Choice selection per header item as per global / project settings
  • Switch boolean value true <-> false

Installation

The extension is available in Open VSX Registry as well as VS Code Marketplace.

For a manual install, download latest vsix file. Go to Extensions > Install from VSIX... and select downloaded file.

Usage

Create Header

If no header is detected, this action adds a new YAML header at top of the file.

The file is parsed. If it has a title (# ... format), it will be added to title header item. Otherwise filename will be added as title.

If option markdownHeader.initWithId is set to true, a random id will be generated.

Add item

The + button creates a new header item.

An item cannot be created for an already existing key.

Item value will be parsed as :

  • string (default)
  • boolean (if true of false is entered)
  • integer (if parseInt is no error)

Remove item

Right click on a header item to remove it. Confirmation will be asked.

title header cannot be removed through the extension.

Update item

A button Change value is available to modify an item value.

Data to be entered will have to be complient with previous value type.

Case of boolean

Nothing will be prompted. The boolean value switches to reversed value.

Case of title

Title cannot be manually modified through the extension. However, if you modify the actual file title (# ...), it is possible to update the value in header by using the Update from markdown context button.

Case of date

If the item key is date, a date will be asked.

Specific updates

It is possible to create specific rules for input validation, by updating the global or project settings.json file.

Several choices

By adding an array of strings to the markdownHeader.choices object, selection of one of these items will be asked instead of free input.

Example, for the header item with key test, the settings can be:

{
	"markdownHeader.choices": {
		"test": [ "option1","option2", "option3" ]
	}
}

Minimum or maximum value of interger

By adding a specific object to the markdownHeader.choices object, the input of an integer can be restrained to a specific range.

Example, for the header item with key test, the settings can be:

{
	"markdownHeader.choices": {
		"test": {
			"min": 1,
			"max": 10
		}
	}
}

Either min, max or both options can be defined.

Settings

markdownHeader.autorefresh If true, header details will automatically update while file modifications
markdownHeader.initWithId If true, when creating a new YAML header a random id field will be added
markdownHeader.choices See the Specific updates section

Dependencies

  • yaml
  • vscode-icons

Author

Sébastien Guerri - gitlab page

Issues

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also contact me.

License

Copyright (C) 2023 Sebastien Guerri

simple-markdown-header is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

simple-markdown-header is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with simple-markdown-header. If not, see https://www.gnu.org/licenses/.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft