Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: magnified on March 06, 2020, 05:23:42 pm

Title: Problem on brackets
Post by: magnified on March 06, 2020, 05:23:42 pm
Hi,
When i tried to type "((" (double parentheses), the editor automatically add two parentheses "))".
But when i type "[[" (double brackets), the editor only add one closing bracket "]"

(())
[[]

I expect that the editor treat brackets as parentheses
Any help would be appreciated.
Title: Re: Problem on brackets
Post by: oBFusCATed on March 07, 2020, 12:34:04 am
What version are you using? What are your editor settings? This seems to work fine in my trunk version.
Title: Re: Problem on brackets
Post by: magnified on March 08, 2020, 08:24:46 am
What version are you using? What are your editor settings? This seems to work fine in my trunk version.
I'm using C::B 17.12
Title: Re: Problem on brackets
Post by: oBFusCATed on March 08, 2020, 01:50:12 pm
Can you try a night build?
Title: Re: Problem on brackets
Post by: magnified on March 08, 2020, 03:54:53 pm
Can you try a night build?
I just installed build 11979 but the problem still exist.
Title: Re: Problem on brackets
Post by: oBFusCATed on March 08, 2020, 07:25:29 pm
Ok, I was able to reproduce this. It seems the smartindent plugin is causing this. I don't have time to fix it now, so it will be good if you can log this issue in the tracker on sf.net page. And ping me/us in some time in the future, if there is no progress...
Title: Re: Problem on brackets
Post by: magnified on March 09, 2020, 02:52:48 am
Ok, I was able to reproduce this. It seems the smartindent plugin is causing this. I don't have time to fix it now, so it will be good if you can log this issue in the tracker on sf.net page. And ping me/us in some time in the future, if there is no progress...
Thank you!
Title: Re: Problem on brackets
Post by: MortenMacFly on April 01, 2020, 12:01:20 pm
Stupid question and I didn't try, but isn't this becasue brace completion" in the editor settings is active?
Title: Re: Problem on brackets
Post by: oBFusCATed on April 01, 2020, 07:10:53 pm
Brace completion works for all types of braces. Without the smartindent plugin enabled it works as expected.