Enhancement: Add property to disable auto append frontmatter #660

Open
opened 2026-10-05 02:59:09 +02:00 by adam · 1 comment
Owner

It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as auto-snippet.

This extension may still not have a features to add uuid, random_hex, that builtin variables generate. I needs these value to auto generate. So I use this extension only for management contents
for now.

thanks for helpful extension.

It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as [auto-snippet](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.auto-snippet). This extension may still not have a features to add uuid, random_hex, that [builtin variables](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables) generate. I needs these value to auto generate. So I use this extension only for management contents for now. thanks for helpful extension. <!-- github-sync-id:2450812570 -->
Author
Owner

Thanks, @morisono, for opening this issue. I've got a couple of questions.

It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as auto-snippet.

If we disable the front matter section creation, the title will also get lost when creating new content. There is also the templating option for your content types (https://frontmatter.codes/docs/content-creation/content-types#using-a-template-with-the-content-type), which allows you to have predefined content in your file.

This extension may still not have a features to add uuid, random_hex, that builtin variables generate. I needs these value to auto generate. So I use this extension only for management contents for now.

Where exactly do you want to include UUIDs, HEX, ...? If it would be in the front matter, you could use custom placeholders: https://frontmatter.codes/docs/content-creation/placeholders#custom-placeholders

If you want to have these in the snippets, it would be an enhancement to the snippets feature to include this support.

Thanks, @morisono, for opening this issue. I've got a couple of questions. > It would be beneficial to have an option that allows users to disable of whole frontmatter when using the extension. This feature conflicts default snippet insertion, such as [auto-snippet](https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.auto-snippet). If we disable the front matter section creation, the title will also get lost when creating new content. There is also the templating option for your content types (https://frontmatter.codes/docs/content-creation/content-types#using-a-template-with-the-content-type), which allows you to have predefined content in your file. > This extension may still not have a features to add uuid, random_hex, that [builtin variables](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables) generate. I needs these value to auto generate. So I use this extension only for management contents for now. Where exactly do you want to include UUIDs, HEX, ...? If it would be in the front matter, you could use custom placeholders: https://frontmatter.codes/docs/content-creation/placeholders#custom-placeholders If you want to have these in the snippets, it would be an enhancement to the snippets feature to include this support. <!-- github-comment-id:2271261376 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#660