User forums > Using Code::Blocks

Behavior of SmartSense

(1/2) > >>

pluto:
I guess that with code completion enabled, and smart sense disabled, the pulldown list should not pop up automatically, but only when called via the shortcut key (I think the default is ctrl+space).
Is this the intended behavior? I ask because at the moment (v16.01, win32) it seems that the list pops up automatically *and* via shortcut, but not *only* via the shortcut.
Can anyone confirm this? thanks :)

ollydbg:
Smart sense means context scope information should be considered. For example


--- Code: ---class A1
{
    int a1;
};

class A2
{
    int a2;
};

int a3;

A1 obj;

obj.a|

--- End code ---


You try to get code completion at the "|" position.

If smart sense is enabled, you will get the result prompt

--- Code: ---a1

--- End code ---
This is because only the token "a1" is under the scope of obj's type "A1".

If smart sense is disabled, you will get the result prompt

--- Code: ---a1
a2
a3
...
...

--- End code ---
You see that it just do a plain text code completion, thus all the tokens which start with "a" will be listed.

For your request, I think you should go to the Menu->Settings->Editor->General settings
In the first editor settings panel. If you disable the "code completion" option, then both auto launch and shortcut feature is totally disabled. As a workaround, keep the "code completion" option on, but set the "Autolaunch after typing # chars" to a quite big value, such as 8.

@devs:
What's your opinion, it is possible to add an option that "disable the autolaunch, and only allow shortcut" to fire the code completion (suggestion list)?

pluto:
Thank you for the clarification :)

ollydbg:

--- Quote from: pluto on February 19, 2016, 03:05:36 pm ---Thank you for the clarification :)

--- End quote ---
You are welcome.
Since this feature is not implemented yet. I think you can write a feature request in our SF's ticket system( see Tickets ), so maybe some day, some one will implement this feature.

pluto:
I'd like to do it myself, but I'm not really versed in C++, but more importantly, it would be nice to have at least some diagram or a text intro on the CB architecture, to ease the access to people who don't have time to commit on the main project, but have some time for small patches and tweaks ;p
I'm totally offtopic anyway :p

Navigation

[0] Message Index

[#] Next page

Go to full version