Search Results for

    Show / Hide Table of Contents

    How to disable auto-formatting for C# templates

    By default the Software Factory will automatically format files under code management. If this is undesired you can disable this behaviour by setting the AutoFormat property to false in the DefineFileConfig method of your template:

    protected override CSharpFileConfig DefineFileConfig()
    {
        return new CSharpFileConfig(
            className: "MyClass",
            @namespace: OutputTarget.GetNamespace())
        {
            AutoFormat = false
        };
    }
    
    • Edit this page
    ☀
    ☾
    In this article
    Back to top Copyright © 2017-, Intent Software Pte Ltd.