Page 1 of 1

T4 Template Editor

Posted: Mon 25 Aug 2014 19:50
by quip85673456
Not sure where to post this.

Using the Devart T4 editor add-in for Visual Studio 2013.
I want to turn off the indenting and the auto-formatting.

I found the "T4 (Devart)" section in the Options menu.
I set the Tabs > Indenting option to "None" but it didn't help.

When I type a method and then a semi-colon, the editor indents the line:

Before:

Code: Select all

<# MyMethod() #>
After:

Code: Select all

<#    MyMethod(); #>

Re: T4 Template Editor

Posted: Wed 27 Aug 2014 10:31
by MariiaI
quip85673456 wrote: I found the "T4 (Devart)" section in the Options menu.
I set the Tabs > Indenting option to "None" but it didn't help.
Please try changing the value of "Indent size" from 4 to, for example, 1 and tell us about the results.

Re: T4 Template Editor

Posted: Wed 27 Aug 2014 14:37
by quip85673456
Changed tab size to 1:

Before:

Code: Select all

<#       KeyColumn("role_id, sub_role_id") #>

Code: Select all

<# KeyColumn("role_id, sub_role_id"); #>

Re: T4 Template Editor

Posted: Thu 28 Aug 2014 05:48
by MariiaI
Please tell us whether this is what you expected to get or not.

Re: T4 Template Editor

Posted: Thu 28 Aug 2014 15:11
by quip85673456
No it isn't what I would like.

I would like to disable formatting so that nothing is changed as I'm typing in the t4 script.

Re: T4 Template Editor

Posted: Fri 29 Aug 2014 08:57
by MariiaI
We will investigate this issue and inform you about the results as soon as possible.