Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Optional indention for code in namespaces

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
KoenTanghe Posted - Dec 06 2010 : 08:25:01 AM
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
5   L A T E S T    R E P L I E S    (Newest First)
hfrmobile Posted - Dec 09 2010 : 03:28:03 AM
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)
KoenTanghe Posted - Dec 07 2010 : 11:47:15 AM
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 ;-)
hfrmobile Posted - Dec 07 2010 : 09:48:55 AM
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 { };
}
KoenTanghe Posted - Dec 06 2010 : 4:55:01 PM
OK, too bad... But good to know.
Maybe one of these programs then.
accord Posted - Dec 06 2010 : 3:11:43 PM
We don't have any current plans to get into code formatting. You can read more on that matter:

http://docs.wholetomato.com?W147

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000