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?