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
 more control over auto indent
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 15 2004 :  12:30:20 PM  Show Profile
VS .NET 2003 auto indent in C++ is slowly driving me up the wall. i have just switched it from "Smart" to "Block", since Smart produces indenting i think is deeply unhelpful. any chance of VAX allowing me to indent to my preferred style?

with indenting set to smart i just typed in:

    for(int i = 0
        i < 20;
        i++) {
            // some code
        }


i often need to wrap for lines when using longer logic blocks. the layout i want is:


    for(int i = 0
            i < 20;
            i++) {
        // some code
    }


i find that using two tabs when i have to wrap a for, if or while line makes it much easier to distinguish the wrapped line from the code inside the for block without over indenting the code inside the curly brackets.

i think i have been spoilt by several years of editing in VIM

zen is the art of being at one with the two'ness

support
Whole Tomato Software

5566 Posts

Posted - Mar 15 2004 :  6:52:48 PM  Show Profile
Improving auto indent is an topic we respectfully refrain from considering. Well, we've considered it many times. We just don't want to touch it.

Whole Tomato Software, Inc.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 16 2004 :  06:56:19 AM  Show Profile
thats understandable. out of interest, is this because of all the different indenting styles out there, or because of the difficulty of doing this in the editor?

i have just had a look in the VIM manual at how VIM 6 gets around the issue of different styles. there are 236 lines of help explaining the different flags you can set for indenting and the effect each one of them has

perhaps a little more flexibility than you would want to offer, but a couple of basic settings in an ini file or registry key somewhere to alter how you do this would be lovely

its a long shot, but if i don't ask you are unlikely to have a go if it helps i am happy to extract and email in the info from the VIM manual

zen is the art of being at one with the two'ness
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Mar 16 2004 :  11:20:35 AM  Show Profile
Too many styles for us. No need to send the VIM manual.

Whole Tomato Software, Inc.
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2322 Posts

Posted - Mar 16 2004 :  11:28:23 AM  Show Profile
feline, have a look at GC which does all that you want (and more). Its not so nicely built-in but works really nice. And its the ONLY C++ code formatter which always works correctly.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Mar 17 2004 :  06:44:22 AM  Show Profile
many thanks Uniwares, i will read up on this

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000