Community
Participate
Working Groups
Ctrl+Click is enabled on all characters except for those that belong to a keyword. It should only be available on IASTNames I would think... Example, hold down Ctrl and move the mouse over ';' or some comments, or some spaces, etc... // take the example from C++ spec 14.3.2-5: template <class T> struct A { void f(int); template <class T2> void f(T2); }; template <> void A<int>::f(int) { } // nontemplate member template <> template <> void A<int>::f<>(int) { } // template member int main() { A<char> ac; ac.f(1); //nontemplate ac.f('c'); //template ac.f<>(1); //template }
Created attachment 21222 [details] cdt_ui patch
Note that this patch only fixes the parts that are not java identifier parts and numbers. Here's what used to be underlined but now isn't with this patch (with this example): (int) { } < > . ( ) ' 1 / <-- space :) : ; Although the words that are commented are still being underlined with Ctrl+Mouse hover. There is a TODO that mentions JDT does a code complete on the text to see if it should be highlighted or not. I think that's too expensive for us.
Patch applied to HEAD.