Bug 283386 - [WISH] "Mark occurences" should mark "return" statement, too
Summary: [WISH] "Mark occurences" should mark "return" statement, too
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-14 05:10 EDT by Ian Hubbertz CLA
Modified: 2020-09-04 15:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Hubbertz CLA 2009-07-14 05:10:42 EDT
Build ID: 20090619-0625

Steps To Reproduce:
"mark occurences" is a very nice features, especially because it works on the index and thus is able to distinguish between identifiers with same name, but different scope.

However, it is not possible to use it to mark strings that are not an identifier. This would be useful to mark keywords like "return", so you can easily see where a method may exit.

Please either implement marking "return" (and maybe some other keywords, where "mark occurences" might be useful) or fallback to a simple string-compare for marking, if a string
is selected that is not an identifier in the index.

In the latter case, the color of the marked strings may be different.

More information:
Comment 1 Nathan Ridge CLA 2017-01-11 13:02:46 EST
Agreed. JDT has this feature and it can be very useful.