Code editor and formatting tips and tricks for GoHugo?

Hello, friends!

What is the recommended way to format HTML files that use GoHugo {{ }} template syntax? Also, which code editor do you use? (I usually use VS Code).

I checked the documentation for editor plugins: Editor plugins , and the recommended one is “Prettier for Go templates.” However, it seems to be abandoned.

I’m asking about formatting because the standard Prettier auto-formatted my code and broke my website due to extra spaces within shortcodes. Even my handwritten code, where I tried to use nested shortcodes, was very sensitive to spaces and tabs, it’s honestly quite annoying.

Is there a reliable auto-formatter for GoHugo? Or recommended code editor?

Thank you, I didn’t know about the announcement.

Why is the package above not mentioned in the documentation? Editor plugins

Probably because it is very new.

I’ve updated the documentation:
https://gohugo.io/tools/editors/#visual-studio-code