Modifying smart indent behaviour
Posted: Fri Jul 27, 2007 4:06 pm
Hi,
I am currently evaluating ZeusEdit for use at my day job. At my day job there are code standards related to indenting that I can't get SmartIndenting to work with. If I set tab size to 8 and indent size to 4 I want SmartIndenting to work like this:
It seems that SmartIndenting is using the tab stop to set the indent, not the indent value. Is there anyway I can change this?
I am currently evaluating ZeusEdit for use at my day job. At my day job there are code standards related to indenting that I can't get SmartIndenting to work with. If I set tab size to 8 and indent size to 4 I want SmartIndenting to work like this:
Code: Select all
if( test_condition ) {
//Start of this line is 4 spaces in from the start of the previous line
//This line is lined up with the line above it
some code here;
} //This brace is lined up with the 'i' of the if
// this line isn't indented anymore
if( test_condition_2 {
some more code;
if( test_condition_3 ) {
//This line is 4 spaces in from the if on the line above
even more code here;
} else {//again, this open brace lined up with the i of the if it
corresponds to
//This line is 4 spaces in from the open brace on the line above
}
}