Does Umbraco 13 validate Template (cshtml) syntax before saving?

Hi all,
In Umbraco 13, when I edit a Template (.cshtml) in the backoffice, it lets me save even if the file has errors — like unclosed HTML tags, missing braces/parentheses, or broken Razor blocks (@if, @foreach). There are no warnings or squiggles, it just saves normally and only fails at runtime.

Is there any way to:

  • validate Razor/HTML before saving,

  • block invalid templates using an event,

  • or add features like auto-close tags or syntax checking?

Or is editing templates in an external IDE the only recommended option?

Thanks!

Personally, for me this is the only option. Even better, I feel like runtime compilation of templates is also not really the way to go. Don’t get me wrong, I do understand how nice it is to be able to make small fixes, especially on small sites, without having to redeploy, but it’s so not very robust and error prone.