hundreds of files, thousands of lines of code, targeted search?

Good bye

I'm currently working on some C code for a game. I have a huge number of files, all of which have different uses. I'm looking for a way to search through the contents of these files.
Example:
I know that to modify an item or something similar in my game, I have to delete lines. However, this line is found in several files, not just the one where I found it. How can I search for this line and have it found?
Loading all of this together into VSCode etc. doesn't work, at least not as far as I know.

Hoping for your expertise!
Thanks 🙂

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
regex9
1 year ago

You can also search with VS code in multiple files. More about this: Search across files.

Alternatively, you can also use an editor like Notepad++ (also Ctrl + Shift + F).

mat22
1 year ago

I don’t know if it’s in Windoof, but under Linux (or WSL) you can use the command

$cat *.c |grep „das wonach du suchst“

Of course you have to leave the $ and the “.