Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hamish 96 posts 154 karma points
    Dec 07, 2010 @ 01:27
    Hamish
    0

    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:

    1. 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?
    2. Can I set up the Umbraco Template Editor to use the tab space rather than inserting 2 spaces when using the tab key?
  • Hamish 96 posts 154 karma points
    Dec 07, 2010 @ 01:32
    Hamish
    0

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Dec 07, 2010 @ 08:29
    Sebastiaan Janssen
    1

    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 :-)

  • Hamish 96 posts 154 karma points
    Dec 13, 2010 @ 21:54
    Hamish
    0

    Never knew about CTRL+D and then CTRL+K - how did i not of this before?

    Thanks Sebastiaan for the tip

Please Sign in or register to post replies

Write your reply to:

Draft