User forums > Using Code::Blocks

auto complete parentheses ?

(1/3) > >>

uLtRaLoVeR:
While coding, sometimes it auto completes the parentheses like obj.getName() sometimes it doesn't especially when a pointer is used. What is the problem? I want it to complete parentheses when i push enter at the auto complete options menu.

uLtRaLoVeR:
up...  ???

Alpha:
Could you post a minimal test case where this happens?

uLtRaLoVeR:

--- Quote from: Alpha on January 04, 2013, 05:03:18 pm ---Could you post a minimal test case where this happens?

--- End quote ---

For example while implementing member functions, when i write this->   the auto complete menu pops up ;however, when I choose one of the member functions and press enter it becomes

this->somefunction

instead of this->somefunction()

it also happens when using a method of an object. for example

someClass obj;
obj.        (the autocomplete menu pops up and i choose someFunc it becomes)
obj.someFunc

i want obj.someFunc()

oBFusCATed:
Enable: Settings -> Editor -> Code-Completion -> Add parenthesis after function name completion

Navigation

[0] Message Index

[#] Next page

Go to full version