65.9K
CodeProject is changing. Read more.
Home

Finding source files in Solution (Visual Studio)

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.86/5 (7 votes)

Mar 31, 2011

CPOL
viewsIcon

26968

Sometimes we spend a lot of time opening - closing folders trying to find .cpp / .cs / .h files in the Solution

This is a very short tip on how to find a source file in the active Solution in Visual Studio. We only need to remember the name or part of it. Obvious.

Steps

  1. Press [Control + /] or [Control + D] (the focus goes to command/search field)
  2. Type ">of " (you must type the four characters, including space).
  3. Type the name of your source file (or prefix).
  4. Move with down cursor -> press [Enter]
  5. Sample (in Windows C++ project):
    [Control + /]>of windows.h[Enter]
    That's it. Hope it helps to avoid wasting time finding source files.