Template Code Editor reformatting tabs to 2 spaces - how do I stop this?
I'm wondering if there is a way to change the settings on the editor
that is used for the Templates under Setting within Umbraco.
I use the tab space to clearly show indentation in Visual Studio but
everytime I open a template within Umbraco's Template Editor it changes
all of the tab spaces to 2 spaces.
(I'm using Firefox, so not entirely sure if this maybe related to the browser only)
Two questions really:
How do I get the Umbraco Template Editor to use the format that
already exists rather than adjusting all tab spacing to 2 spaces when it
displays the code?
Can I set up the Umbraco Template Editor to use the tab space rather than inserting 2 spaces when using the tab key?
Not a clue.. But you can check out the source code of umbraco to see what editor is used and how it does formatting. I think it's going to be very hard to exactly mimic what visual studio does though.
You know you can alway do CTRL+D and then CTRL+K in VS to reformat the document, right? I tend to not use the editor in umbraco and do everything in VS, it's a much better editor anyway :-)
Template Code Editor reformatting tabs to 2 spaces - how do I stop this?
I'm wondering if there is a way to change the settings on the editor that is used for the Templates under Setting within Umbraco.
I use the tab space to clearly show indentation in Visual Studio but everytime I open a template within Umbraco's Template Editor it changes all of the tab spaces to 2 spaces.
(I'm using Firefox, so not entirely sure if this maybe related to the browser only)
Two questions really:
Not a clue.. But you can check out the source code of umbraco to see what editor is used and how it does formatting. I think it's going to be very hard to exactly mimic what visual studio does though.
You know you can alway do CTRL+D and then CTRL+K in VS to reformat the document, right? I tend to not use the editor in umbraco and do everything in VS, it's a much better editor anyway :-)
Never knew about CTRL+D and then CTRL+K - how did i not of this before?
Thanks Sebastiaan for the tip
is working on a reply...