How to customize indentation of class relative to namespace and members relative to class?

2 posts, 0 answers
  1. Inga
    Inga avatar
    1 posts
    Member since:
    Nov 2013

    Posted 28 Nov 2013 Link to this post

    I'm learning to use JustCode (2013.3.1016.1) with Visual Studio 2013 for C# coding.
    I would like to eliminate indentation of class relative to namespace and members relative to class, i.e.
     
    namespace MyNamespace
    {
    class MyClass
    {
    public void myMethodA()
    {
         // implementation
    }

    private void _myMethodB()
    {
         // implementation
    }

    private int _myField;
    }
    }

    The motivation being that in the case with only one namespace-level class per source file almost all the code lines begin at the 2nd indentation level which to me seems to be somewhat wasteful:
     
    namespace MyNamespace
    {
       class MyClass
       {
          public void myMethodA()
          {
               // implementation
          }
          
          private void _myMethodB()
          {
               // implementation
          }
          
          private int _myField;
       }
    }

    My question is how can I configure such formatting style? I could not find a way to do it using JustCode User Options -> Code Style -> C# -> Indentation

  2. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 02 Dec 2013 Link to this post

    Hello Inga,

    You are not able to achieve this formatting via JustCode. This is a style that makes code readable and separates different scopes. Even with JustCode disabled VS will continue to format this way.
    Thanks.

    Regards,
    Zdravko
    Telerik
    Share what you think about JustCode with us, so we can help you even better! You can use the built-in feedback tool inside JustCode, our forum, or our JustCode feedback portal.
  3. DevCraft banner
Back to Top