# Poll 2021. Which code editors do you use when writing Hugo's files (markdown and templates)?

**URL:** <https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827>\
**Category:** support\
**Created:** [May 11, 2021, 8:47pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827 "2021-05-11T20:47:58Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Nyala](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nyala/32/14139_2.png) [@Nyala](https://discourse.gohugo.io/u/Nyala)\
**Post date:** [May 22, 2021, 10:09am UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/21 "2021-05-22T10:09:33Z")

</div>

I started with Brackets and it was a good editor[.](https://www.essayontime.com/) Later I switched to Atom and found it more convenient to me, but now I am using VS Code and I like it!

---

<div class="post-metadata">

**Author:** ![andreseduardop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andreseduardop/32/25434_2.png) [@andreseduardop](https://discourse.gohugo.io/u/andreseduardop)\
**Post date:** [May 22, 2021, 1:44pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/22 "2021-05-22T13:44:51Z")

</div>

> [@Nyala](#):
>
> I am using VS Code and I like it!

Hmm, I don’t see your vote in the poll.

---

<div class="post-metadata">

**Author:** ![Nyala](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nyala/32/14139_2.png) [@Nyala](https://discourse.gohugo.io/u/Nyala)\
**Post date:** [May 24, 2021, 5:24pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/23 "2021-05-24T17:24:54Z")

</div>

Oh, sorry. Now I’m with VS Code Lovers 😀

---

<div class="post-metadata">

**Author:** ![andreseduardop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andreseduardop/32/25434_2.png) [@andreseduardop](https://discourse.gohugo.io/u/andreseduardop)\
**Post date:** [May 25, 2021, 10:13pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/24 "2021-05-25T22:13:29Z")

</div>

> [@bep](#):
>
> I think there is a Prettier extension that supports Go templates, but sadly it does not support the `else` keywords, making it less than … ideal.

> [@Fryboyter](#):
>
> At least in my last test, such extensions did not work reliably because they do not completely support the special features of the Hugo templates.

I just verified that Prettier is working correctly to format Hugo templates, including Go functions.  
Installed as JsPrettier Plugin in Sublime Text version 4 (recently released).

> <https://github.com/jonlabelle/SublimeJsPrettier/issues/239>
>
> JsPrettier works great on its own.
> I wonder if it works together with other \[Co…mmunity Plugins for Prettier\](https://prettier.io/docs/en/plugins.html)?
> 
> Specifically, I haven't gotten it to work with \[prettier-plugin-go-template\](https://github.com/NiklasPor/prettier-plugin-go-template).

Still can’t get it to work in VS Code. ☹

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 26, 2021, 7:53pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/25 "2021-05-26T19:53:15Z")

</div>

> [@andreseduardop](#):
>
> I just verified that Prettier is working correctly to format Hugo templates, including Go functions.

Does that include if/else with/else constructs?

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [May 26, 2021, 7:55pm UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/26 "2021-05-26T19:55:01Z")

</div>

I guess not: [AST Rewrite by NiklasPor · Pull Request #49 · NiklasPor/prettier-plugin-go-template · GitHub](https://github.com/NiklasPor/prettier-plugin-go-template/pull/49) – but it’s coming.

---

<div class="post-metadata">

**Author:** ![andreseduardop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andreseduardop/32/25434_2.png) [@andreseduardop](https://discourse.gohugo.io/u/andreseduardop)\
**Post date:** [May 31, 2021, 2:34am UTC](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827/27 "2021-05-31T02:34:07Z")

</div>

You are right. There is no stable version yet. 😥

And yes, it is coming. 👍

[Previous page](https://discourse.gohugo.io/t/poll-2021-which-code-editors-do-you-use-when-writing-hugos-files-markdown-and-templates/32827.md?page=1)
