Page 1 of 1

code completion

Posted: Wed Jan 05, 2011 2:32 pm
by temnozor
Hi,

i im trying to figure out how to use this nice ide to fully potential, because i wanted to refresh my knowledge of c++ after using other languages like java and c#

When i get this code completion tooltip, how can i switch through the overloaded functions using keyboard shortcuts e.g. it shows 1 of 7 and i want to jump to 2 of 7?

Is there an option to activate by using " for string begin to automatically insert the " for string end and jump between them for string input?
like for brackets when you got code completion tooltip and hit tab key

the tag system is nice and working but i miss something like a plugin or tool that tries to create and show something like a reference of all available functions, headers and classes installed

if it would be smart it could have an option for source files of libs to try to parse comments and add them to function description

Re: code completion

Posted: Wed Jan 05, 2011 3:23 pm
by eranif
temnozor wrote:When i get this code completion tooltip, how can i switch through the overloaded functions using keyboard shortcuts e.g. it shows 1 of 7 and i want to jump to 2 of 7?
Up / Down arrows
temnozor wrote:Is there an option to activate by using " for string begin to automatically insert the " for string end and jump between them for string input?
From the main menu: 'Settings | Tags Settings | General | Triggering...'
and enable it from there
temnozor wrote:the tag system is nice and working but i miss something like a plugin or tool that tries to create and show something like a reference of all available functions, headers and classes installed
From the main menu:
'Plugins | Manage Plugins...'
Enable the plug-in SymbolView and restart codelite
You will see a new tab after restart (next to the 'Workspace' / 'Explorer' etc tabs) named 'Symbols' this will provide a tree form of all classes/namespaces/methods etc for the entire workspace.

In addition to this plugin, you can use the following shortcuts:
Ctrl-Shit-O --> provide an outline for the current file
Ctrl-Shift-T --> search for a class/struct etc (you can change the filter to open other types, like 'macros' functions' and others)
Ctrl-Shift-R --> similar to the above but to open source files
temnozor wrote:if it would be smart it could have an option for source files of libs to try to parse comments and add them to function description
The completion box should display any comment which is written on top of a function (or side long it)

Eran

Re: code completion

Posted: Wed Jan 05, 2011 3:43 pm
by temnozor
eranif wrote:
temnozor wrote:When i get this code completion tooltip, how can i switch through the overloaded functions using keyboard shortcuts e.g. it shows 1 of 7 and i want to jump to 2 of 7?
Up / Down arrows
that doesn'T work

e.g. if i use cin.get.... the autocompletion box opens and it shows me get and as tooltip that this function has 7 overloads...to use up/down arrows i cycle through the functions (in this cas the following is getline and the function befor is gcount) but i want to cycle through the tooltips for the different overloads of get

Re: code completion

Posted: Wed Jan 05, 2011 11:30 pm
by eranif
Ok, so you are talking about the assist tip for the code-completion box, simply click on the little black triangles

Eran

Re: code completion

Posted: Wed Jan 05, 2011 11:32 pm
by temnozor
yeah that is what i mean so it looks like there is no keyboard shortcut in to scroll like e.g. shift+arrowkeys maybe you could add that in a future build

cheers