This is a migrated thread and some comments may be shown as answers.

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

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Inga
Top achievements
Rank 1
Inga asked on 28 Nov 2013, 09:49 PM
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

1 Answer, 1 is accepted

Sort by
0
Zdravko
Telerik team
answered on 02 Dec 2013, 12:33 PM
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.
Tags
General Discussions
Asked by
Inga
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
Share this question
or