If you create @helper in the view file in which to use it, no problem, but you do not want to clutter up the markup. At the same time, I do not want to use extension methods due to the lack of support for Razor.
Can I somehow write a helper using Razor while placing it in a separate file? In theory, it should be possible to create a .cshtml file there to describe everything, and then use it anywhere referring to it. But it does not work, VS does not see.