Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Find struct variable in C/C++ search(How to do C/C++ search for the structure variable)
Find struct variable in C/C++ search [message #1859208] Fri, 19 May 2023 08:15 Go to next message
Harish Boyina is currently offline Harish BoyinaFriend
Messages: 1
Registered: May 2023
Junior Member
Hi,
Eclipse is providing the smart search i.e., C/C++ search which searches the active code in the files. It differentiates the search results highlighting based on the expression. This is awesome and improves the productivity. But, here I am facing one issue that I am not able to find the structure variable in code.

For example:
Person.name is a structure variable1, Person_1.name. Using C/C++ search I can find the variable name and it will highlight both variables but I can't search the Person.name. How can I do that?
Re: Find struct variable in C/C++ search [message #1859336 is a reply to message #1859208] Wed, 31 May 2023 15:06 Go to previous message
Kabiru Usman is currently offline Kabiru UsmanFriend
Messages: 42
Registered: April 2023
Member
What I've found to work is to try searching for the structure and the variable as a single string, like "Person.name" without the quotes. Eclipse should then be able to find instances of that structure variable in your code. I know it's not ideal, especially if you're working with a lot of similarly named structures and variables, but it's a workaround that usually gets the job done for me.
Previous Topic:C vs C++: Understanding the Differences
Next Topic:use own error parser under dosn't work under Linux
Goto Forum:
  


Current Time: Tue Jan 14 03:33:32 GMT 2025

Powered by FUDForum. Page generated in 0.03392 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top