The code editor available in Pinegrow is a very basic version. While it makes source code editing easy, it doesn’t have all the features of modern code editors. For developers who need more, one option is to turn off the auto-formatting feature for HTML code in the settings (and do the same for CSS if you prefer).
And use an external editor like VSCODE (where you can activate the Pinegrow extension), which will then allow you to install other extensions that match your preferences.