News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

auto complete parentheses ?

Started by uLtRaLoVeR, December 14, 2012, 06:10:44 PM

Previous topic - Next topic

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


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?

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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

uLtRaLoVeR

Quote from: oBFusCATed on January 05, 2013, 02:10:14 PM
Enable: Settings -> Editor -> Code-Completion -> Add parenthesis after function name completion

There is no such option i use 10.05 version.
If it is in a new one, how can i upgrade it without losing my editor options.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Quote from: oBFusCATed on January 07, 2013, 03:46:59 PM
Just run the installer...
...of course this only works if you use the installer of the same version of C::B.

For an upgrade, remove your old installation, but keep "default.conf" (which is the default), then run the new installer.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Quote from: MortenMacFly on January 07, 2013, 06:12:12 PM
For an upgrade, remove your old installation, but keep "default.conf" (which is the default), then run the new installer.
Aren't our installer run the old uninstaller at startup?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

uLtRaLoVeR

Quote from: oBFusCATed on January 07, 2013, 03:46:59 PM
Just run the installer...

I use it in linux and i couldn't find an installer for ubuntu?

oBFusCATed

uLtRaLoVeR: hope you are joking:)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

uLtRaLoVeR


oBFusCATed

Quote from: uLtRaLoVeR on January 08, 2013, 02:31:38 AM
can you show the version for ubuntu?
I don't understand why would you bother searching a package on our site. You have a package manager and if it is not there you have the ppa projects.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]