• Home
  • C/C++ Software Development with Eclipse
    • Contents
      • Copyrights
      • Dedication
      • Preface
      • 1. Introduction
      • 2. C/C++ Software Development
      • 3. More from Eclipse
      • 4. Advanced Eclipse
      • 5. Appendix
  • Outline
      • 2.1.11.3. C/C++ Sensitive Search
        • 2.1.11.3.1. Quickly search references
  • «2.1.11.2. Adv...
  • 2.1.11.4. Sea... »
  • Buy
    • Buy eBook
    • Buy Printed Book
    • Request Preview Copy

2.1.11.3. C/C++ Sensitive Search¶

Just like Advanced Search, Eclipse/CDT can also search C/C++ specific.

../../../../_images/c-cpp-search-choose-what.png

C/C++ Search

The options are self-explanatory. Any Element and All Occurrences would search all the types of Elements.

../../../../_images/c-cpp-search-everything.png

Disabled options when selected to search everything

There is more than what meets the eye. Just like the scope resolution operator of C++, :: is the magic separator.

So, searching for *::in would find us all the class/structures that have in as the member field.

../../../../_images/c-search-tree-view-no-fn.png

Searching for all usage of field in

We can also extend the view. From Menu Options img-e-menu-options, we to get Advanced search options.

../../../../_images/c-src-view-adv-optns.png

Advanced search options

If we enable Show Enclosing Definitions, we can See the Search results with function/structure names

../../../../_images/c-search-tree-view-with-fn.png

See the Search results with function/structure names

Similarly, with Show as List, we can See the Search results in table format.

../../../../_images/c-search-table-view.png

See the Search results in table format

2.1.11.3.1. Quickly search references¶

Ctrl + G is a quick short-cut. Just select an element, and press Ctrl + G. Eclipse will quickly show us the contextual references of the given element.

To quickly go to the next/previous element, you may have to enable the Annotations

  • Home
  • «2.1.11.2. Advanced Search
  • Back to top
  • 2.1.11.4. Search View Options»
  • Contents

C/C++ Software Development with Eclipse(v0.8.1)

© Copyright MMIX-MMXVII Purnank Harjivanbhai Ghumalia & Meera Purnank Ghumalia.

Privacy Policy

If you have any suggestion/comment, feel free to Contact the authors with your valuable feedback.

Created using: Sphinx1.4.8,Ratatouillev0.7.08-cd0b972.

Ratatouille