Bug 410290 - [Content Assist] Option to customize content assist auto-activation triggers for CDT like in JDT
Summary: [Content Assist] Option to customize content assist auto-activation triggers ...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 enhancement with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-09 16:49 EDT by Ivan Aksamentov CLA
Modified: 2020-09-04 15:18 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Aksamentov CLA 2013-06-09 16:49:50 EDT
Request: 
Add "Auto activation triggers for C++" option for CDT code editor Content Assist.

Details:
In [ Preferences -> Java -> Editor -> 'Content Assist' -> 'Auto activation triggers for Java' ] field we can set up any triggers which will activate Content Assist when editing text. 
But C++ part missing this feature and only have flags to enable ".", "->" and "::" as triggers. Not sure why this was made (probably with concerns of performance?) but I think this is most feature that users missing when moving from another C++ IDEs with strong automatic code-completion features.
Hopefully, most users can decide by themselves wheteher they need it or not and fine-tune for their needs.
Because C++ triggers can have more than one character length (for example "::" and "->", probably, this option implementation will need take care of some kind of delimiters between triggers, or even this option be implemented as some kind of list.

Examples of usage:
By default triggers set up like "." "->" "::".
User can add "#", so when he enters "#" in editor, common preprocessor directives such as #include, #define will pop-up.
User can add '"' and '<', so code completion will list files after #include or user-defined types in template arguments lists
User can add "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" so Code Assist will be trigered from any entered character.
Comment 1 long th CLA 2013-07-03 10:25:58 EDT
It seems several years have passed, many people requested this feature.However, it does not implement.
Perhaps someone can make a plug-in for this feature.Or fork a CDT...
Comment 2 Marc-André Laperle CLA 2013-11-21 13:03:23 EST
(In reply to long th from comment #1)
> It seems several years have passed, many people requested this
> feature.However, it does not implement.
> Perhaps someone can make a plug-in for this feature.Or fork a CDT...

I don't think there's any disagreement that this enhancement should be implemented so I don't see a need for a plug-in or a fork. It's just that no one has implemented it yet. If someone contributed a patch I think it would get accepted pretty easily.
Comment 3 Yevgeny Shifrin CLA 2014-01-25 04:12:52 EST
Hi guys,

We should be very careful with this request. In many cases content assist in C/C++ could take several seconds. So imagine that you are typing a text and editor is stuck for several seconds each time. From my expirience we should not enable any content assist by default at all ( including . -> and so on). If you look at the forums there are many people that faced these issues and were really frustrated. It is very important not to enable this feature by default.

Thanks,
Yevgeny