Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Optional indention for code in namespaces
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

KoenTanghe
Senior Member

Belgium
28 Posts

Posted - Dec 06 2010 :  08:25:01 AM  Show Profile  Reply with Quote
Hi,
VAX is (still) great!
I'm not sure if VAX can do this, but consider this example code (C++, using Visual Studio 2008):

namespace MySpace
{

class MyClass
{
public:
    MyClass();
}

}

If I now use Alt+F8 (Edit.FormatSelection) to format the text, I will end up with an extra level of indention, which we prefer not to have:

namespace MySpace
{
    
    class MyClass
    {
    public:
        MyClass();
    }
    
}

Usually, all of our files contain such a namespace statement at the very start of the file, which is then followed by lots of declarations or implementations, and the block is then closed at the end of the file.
Having this extra indention for all declarations/implementations is a bit annoying as it is taking up unnecessary horizontal space.

So: can Visual Assist make this extra indention for namespaces optional?

Thanks,

Koen

Edited by - KoenTanghe on Dec 06 2010 08:25:26 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 06 2010 :  3:11:43 PM  Show Profile  Reply with Quote
We don't have any current plans to get into code formatting. You can read more on that matter:

http://docs.wholetomato.com?W147
Go to Top of Page

KoenTanghe
Senior Member

Belgium
28 Posts

Posted - Dec 06 2010 :  4:55:01 PM  Show Profile  Reply with Quote
OK, too bad... But good to know.
Maybe one of these programs then.
Go to Top of Page

hfrmobile
Ketchup Master

Austria
79 Posts

Posted - Dec 07 2010 :  09:48:55 AM  Show Profile  Reply with Quote
Btw, I prefer correct indention.

But it seems to modern to save space? Saving disk space?

If the syntax would be

declare namespace Foo;

class Bar { };

then it would be correct, but it is:

namespace Foo
{
  class Bar { };
}

Visual Assist X for C/C++ and ReSharper, FxCop and StyleCop for C#, Eclipse Ganymede for Java
Go to Top of Page

KoenTanghe
Senior Member

Belgium
28 Posts

Posted - Dec 07 2010 :  11:47:15 AM  Show Profile  Reply with Quote
Nothing to do with disk space of course...
"Screen estate" would be the reason.
And always having everything in a namespace (from start to end of file) does not really require a visual indication by indention for me... But anyway, I'll get used to it ;-)
Go to Top of Page

hfrmobile
Ketchup Master

Austria
79 Posts

Posted - Dec 09 2010 :  03:28:03 AM  Show Profile  Reply with Quote
disk space: Was a joke of course ;-)
"screen estate" : Yes, when using a resolution of 640x480 ;-) (sorry for the side blow)

Btw, a previous employer also did it ("design guidelines"). But since VS2005 they gave up since reformat feature does with indention :o)

Visual Assist X for C/C++ and ReSharper, FxCop and StyleCop for C#, Eclipse Ganymede for Java
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000