Community
Participate
Working Groups
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.
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...
(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.
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