Front Matter actions are also available as commands. In this section of the documentation all commands will be explained.
- Start by opening the command prompt:
- Windows: ⇧+ctrl+P
- Mac: ⇧+⌘+P
- Use one of the following commands
This command will initialize the project with a template folder and an article template. It makes it easier to get you started with the extension and creating your content.
Opens the dashboard with your Markdown pages overview. If you did not yet initialize your project, the welcome screen will be shown.
Insert image into your content
Allows you to quickly insert an image reference in the Markdown file.
Creates a new category and allows you to include it into your post automatically.
Creates a new tag and allows you to include it into your post automatically.
Inserts a selected categories into the front matter of your article/post/... - When using this command, the Front Matter panel opens and focuses on the specified type.
Inserts a selected tags into the front matter of your article/post/... - When using this command, the Front Matter panel opens and focuses on the specified type.
Export all tags & categories to your settings
Export all the already used tags & categories in your articles/posts/... to your user settings.
Remap or remove tag/category in all articles
This command helps you quickly update/remap or delete a tag or category in your markdown files. The extension will ask you to select the taxonomy type (tag or category), the old taxonomy value, and the new one (leave the input field blank to remove the tag/category).
Info: Once the remapping/deleting process completes, your VS Code settings update with all new taxonomy tags/categories.
Create a template from current file
This command allows you to create a new template from the current open Markdown file. It will ask you for the name of the template and if you want to keep the current file its content in the template.
Create new content from defined content type or template
With this command, you can easily create content in your project from the defined content types or templates.
Info: The command will use the
frontMatter.templates.prefixsetting in order to add a prefix (default:
yyyy-MM-dd) on the filename.
Generate slug based on content title
This command generates a clean slug for your content. It removes known stop words, punctuations, and special characters.
--- title: Just a sample page with a title slug: sample-page-title ---
You can also specify a prefix and suffix, which can be added to the slug if you want. Use the following settings to do this:
By default, both prefix and suffix settings are not provided, which mean it would not add anything extra to the slug.
Another setting is to allow you to sync the filename with the generated slug. The setting you need to turn on enable for this is
Info: At the moment, the extension only supports English stopwords.
Set lastmod date
Sets/updates the current modified date in your Markdown file.
Open the site preview of your content in VS Code.
Promote settings from local to team level
This command allows you to promote all local settings from within your
.vscode/settings.json file to be promoted to the projects team configuration
Set current date
This command has been removed, as it became obsolete since the introduction of Content Types.