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

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 9
Joined: Sat Apr 14, 2012 3:50 pm

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

Post 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? :?:
Last edited by topsuccess on Thu Apr 10, 2014 12:43 pm, edited 1 time in total.

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

You can specify the desired size ${AutoComplete_Indent} in the Coder-plugin's settings.

Offline
Posts: 9
Joined: Sat Apr 14, 2012 3:50 pm

Post by topsuccess »

I have tried, I'm sorry, but seem there is no option for ${AutoComplete_Indent} in Plugins > Coder Setting > Auto Complete.

DV
Offline
Posts: 1250
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Post 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.

Offline
Posts: 9
Joined: Sat Apr 14, 2012 3:50 pm

Post 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.
Post Reply