Parentheses completion does not work

General questions regarding the usage of CodeLite
MrDixioner
CodeLite Curious
Posts: 5
Joined: Thu Dec 29, 2022 3:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

Parentheses completion does not work

Post by MrDixioner »

When I enter the name of a new function and put a parenthesis, the closing bracket does not appear. The auto-close only works when I put a parenthesis in an already existing parenthesis pair.

DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Parentheses completion does not work

Post by DavidGH »

Hi,

You forgot to state your platform and your CodeLite version. That's always a good idea, but especially for Code Completion which has had lots of recent changes.

Anyway, it might be because of your Settings. Look in Settings > Preferences > Edit and make sure that
'Auto complete closing bracket and parentheses'
is ticked.

Regards,

David

MrDixioner
CodeLite Curious
Posts: 5
Joined: Thu Dec 29, 2022 3:32 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Parentheses completion does not work

Post by MrDixioner »

Linux Mint 21.1, CodeLite 16.7.0.
I already have the settings that you specified, but the brackets are not closing. I want to note that this works randomly: the bracket may or may not close, I did not understand what it depends on.

User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Parentheses completion does not work

Post by eranif »

The closing parenthesis will appear:

  • if you typed { -> you need to hit ENTER
  • if you typed { and then you typed anything but ENTER -> you will not get the closing one
  • if you typed ( it will always add the closing one
  • if you typed [ it will always add the closing one
Make sure you have read the HOW TO POST thread
Post Reply