Poor Alignment of Functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brian
    Journeyman
    • Jun 2010
    • 12

    Poor Alignment of Functions

    File Type: C,C++,C# Source

    Left:
    Code:
    {
    	void B()
    	{
    		return;
    	}
    
    	void D()
    	{
    		return;
    	}
    }
    Right:
    Code:
    {
    	void A()
    	{
    		return;
    	}
    
    	void B()
    	{
    		return;
    	}
    
    	void C()
    	{
    		return;
    	}
    
    	void  D()
    	{
    		return;
    	}
    }
    Result:
    Code:
    {                         |            {                    
                              |             void A()
                              |             {
                              |              return;
                              |             }
                              |            
     void B()                 |             void B()
                              |             {
                              |              return;
                              |             }
                              |            
                              |             void C()
     {                        |             {
      return;                 |              return;
     }                        |             }
                              |            
     void D()                 |             void  D()
     {                        |             {
      return;                 |              return;
     }                        |             }
    }                         |            }
    Preferred Result:
    Code:
    {                         |            {                    
                              |             void A()
                              |             {
                              |              return;
                              |             }
                              |            
     void B()                 |             void B()
     {                        |             {
      return;                 |              return;
     }                        |             }
                              |            
                              |             void C()
                              |             {
                              |              return;
                              |             }
                              |            
     void D()                 |             void  D()
     {                        |             {
      return;                 |              return;
     }                        |             }
    }                         |            }
  • Aaron
    Team Scooter
    • Oct 2007
    • 16002

    #2
    Thanks for the simple test case. Improving our alignment of text, specifically code blocks like this, is on our Wishlist. In the meantime, you would need to select blocks and use the Align With command to push things into place.
    Aaron P Scooter Software

    Comment

    Working...