Editing Razor inside Umbraco back office - carriage return issue
When editing a razor file, I hit enter and the cursor moves to the next line, but waaaay over to the right.. I can remove the whitespace to bring the cursor back but it's getting annoying.
Anyone experience this or have a solution. Is there a setting for the razor editor that I can switch off?
Weird. Does it happen with every Razor file, or just a particular one? I've not started playing with Razor yet, so don't really know, but (if this is just one file) I imagine the indentation after hitting return will match that of the previous line. Have you got a ton of whitespace further up the file?
Editing Razor inside Umbraco back office - carriage return issue
When editing a razor file, I hit enter and the cursor moves to the next line, but waaaay over to the right.. I can remove the whitespace to bring the cursor back but it's getting annoying.
Anyone experience this or have a solution. Is there a setting for the razor editor that I can switch off?
I touched the web.config and nothing changed.
I turned script caching off and the error went away... odd...
Can someone explain this... I know what I'm doing, just confused.
Hi Daniel,
Weird. Does it happen with every Razor file, or just a particular one? I've not started playing with Razor yet, so don't really know, but (if this is just one file) I imagine the indentation after hitting return will match that of the previous line. Have you got a ton of whitespace further up the file?
Just a stab in the dark.
My last post was misplaced.. was supposed be on another issue.. :P
In reference to your questions: This happens on a new razor file (.cshtml) when file is empty and there is no whitespace.
Any answers to this issue?
is working on a reply...