Page 1 of 1

[Solved] Is this a minor bug of ${AutoComplete_Indent}

Posted: Sat Apr 05, 2014 5:23 am
by topsuccess
I noticed that the AutoComplete is not perfect, example:
When I enter "for" and press Enter, Akelpad generates this block:

Code: Select all

for (; ; )
{
  _
}
the "_" indicate a switchable point, it indented only two spaces, but I set TAB size = 4.

Also, I checked the cpp.coder file, AutoComplete used a variable:

Code: Select all

${AutoComplete_Indent}
Maybe it is not equal current TAB size? :?:

Posted: Sat Apr 05, 2014 8:41 am
by Skif_off
You can specify the desired size ${AutoComplete_Indent} in the Coder-plugin's settings.

Posted: Wed Apr 09, 2014 3:09 am
by topsuccess
I have tried, I'm sorry, but seem there is no option for ${AutoComplete_Indent} in Plugins > Coder Setting > Auto Complete.

Posted: Wed Apr 09, 2014 9:38 am
by DV
topsuccess wrote:I have tried, I'm sorry, but seem there is no option for ${AutoComplete_Indent} in Plugins > Coder Setting > Auto Complete.
You can find this variable under Coder Settings -> General, it's present under each theme.
Probably you don't want to re-define it manually inside each available theme, so select <Global variables> in the Theme dropdown list and add a variable AutoComplete_Indent with its desired value there.

Posted: Thu Apr 10, 2014 12:41 pm
by topsuccess
Yes this will solve the problem. and after testing, I set AutoComplete_Indent equal " "(4 spaces), not 4.

Cause of the problem is my Coder settings does not exist such a variable.

Thank you, DV.