# VSCode plugin frontmatter

**URL:** <https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331>\
**Category:** Meta\
**Created:** [February 23, 2022, 10:11am UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331 "2022-02-23T10:11:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [February 23, 2022, 10:11am UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331/1 "2022-02-23T10:11:58Z")

</div>

I am not sure whats going on, if this somehow got filtered or I live in a parallel universe, because I never heard of this on the discourse, but somehow think it can’t have escaped y’alls attention and it’s not too very new, also the developer did no self-marketing for it, so here it goes:

There is a plugin for VSCode that is called “Frontmatter” which offers a CMS inside of VSCode on top of your Hugo repo. It’s all “one clicky setup” with many ways to configure it. For normal uses (think no leaf bundles) without any configuration, for specific things with plenty of options to configure. It transforms the frontmatter into nifty forms and also works with article images (only one per post, but that’s alright).

Here is the link:

> **[The CMS running in VS Code for your static sites | Front Matter](https://frontmatter.codes/)**
>
> Headless CMS running in Visual Studio Code that helps managing your static sites. Supports Hugo, Jekyll, Docusaurus, NextJs, Gatsby, and more.

And the developer is using it with Hugo, so I guess there is an open ear for feature requests that help us Hugoans.

One note: if you want to test it, make a backup of your project. There is a feature, that updates lastmod-timestamps automatically when you save a file. Which in production is quite nice, but while you are testing things out it might be annoying to `git restore file.md` all the time when you add a frontmatter value. There is an easy opt-out with a checkbox for this feature.

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [February 23, 2022, 8:00pm UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331/2 "2022-02-23T20:00:14Z")

</div>

I have already posted about Front Matter, about 4 months ago:

> [@Front Matter CMS running in VS Code for Hugo and other static site generators](https://discourse.gohugo.io/t/front-matter-cms-running-in-vs-code-for-hugo-and-other-static-site-generators/35728):
>
> There is a new CMS running in VS Code for Hugo and other static site generators. It’s called Front Matter CMS and @zivbk1 posted about it over [here](https://discourse.gohugo.io/t/what-is-the-best-open-source-cms-for-hugo/34728/15), however this deserves its own topic as people need to know about it. Front Matter is an essential Visual Studio Code extension that simplifies working and managing your markdown articles. We created the extension to support many static-site generators like Hugo… [quote source](https://frontmatter.codes/docs)

---

<div class="post-metadata">

**Author:** ![pitifi9191](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pitifi9191](https://discourse.gohugo.io/u/pitifi9191)\
**Post date:** [February 24, 2022, 12:09am UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331/3 "2022-02-24T00:09:30Z")

</div>

> [@davidsneighbour](#):
>
> There is a plugin for VSCode that is called “Frontmatter”

terrible choice, if you us comments or numbers with . in the front matter. This plugin removed all comments and keep changing the values given in front matter to some other numbers, I didn’t realise for few days after which it was alot of manual work to fix this. So, I will say it is a risky plugin to use.

thanks

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [February 24, 2022, 2:44am UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331/4 "2022-02-24T02:44:41Z")

</div>

It’s only a terrible choice if you don’t know what you are doing. That’s what I meant by the distinction between normal and specific uses. All frontmatter variables can be set up in the configuration and proper setup prevents deleted items. I am pretty sure depending on the type of frontmatter “numbers with .” (floats) are prohibited without making them into a string, which then when parsing it as number results in null, etc… etc… etc…

If you have specific requirements for the frontmatter then create a configuration for them:

> **[Documentation | Front Matter](https://frontmatter.codes/docs/content-types#supported-field-types)**
>
> documentation\_description

With great powers…

---

<div class="post-metadata">

**Author:** ![davidsneighbour](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/davidsneighbour/32/24507_2.png) [@davidsneighbour](https://discourse.gohugo.io/u/davidsneighbour)\
**Post date:** [February 24, 2022, 2:45am UTC](https://discourse.gohugo.io/t/vscode-plugin-frontmatter/37331/5 "2022-02-24T02:45:15Z")

</div>

> [@alexandros](#):
>
> I have already posted about Front Matter, about 4 months ago:

And I hearted that post. So it’s a parallel universe situation 😃
