What I want is for the indent value to be the number of spaces (or the size of a tab) a line is indented from the line above it.
If the
Smart indenting option is enabled then Zeus will take the white space from the line above to line up the new line. The line should be copied exactly including any combination of tabs or spaces.
You should be able to see this if you turn on the visual white space option using the
View, White Space menu.
So if I have an if statement starting on column 5
After hitting enter Zeus will have placed the cursor at column 5 to match the indent from the line above.
Then as you typed in the
if Zeus will copy the white space from the line above to prefix the
if statement.
I want the indent to go to column 9, not 13.
The big question is what are the tab stops you expecting to see
For example with the cursor at column 1 and hitting the tab key several times where do you expect the cursor land for each tab key
In this example is column 5 the first tab stop or the second and what tab stop is column 9
The indent value defines the first tab stop and the tab size defines all subsequent tab stops. So for example if column 5 is tab stop one and column 9 is tab stop two then you would need an indent of 4 and the tab size is 4. The next tab stops would be column 13, 17 etc
But since the indent is the same as the tab size it is irrelevant so you can just leave the indent set to 0.
Also remember the enter an tab keys tie in several features. The enter key is using the smart indenting and the tab key is tied to the smart tabbing feature. You can turn off the smart indenting using the option in the
Templates panel and you can turn of the smart tabbing by re-mapping the
Tab key.
So again I think the real question is what tab stops do you expect to see
Cheers Jussi