You only worked on very small codebase then. When you work on giant ones, you Ctrl+F a lot, build a limited model of the problem space, and pray the unit tests will catch anything you might have missed...
Such as ctrl-shift-f
But this is an advanced topic, I don't wanna get into it