Partager via


Visual Studio .NET 2003 Tip o' the day

Ok, I'm pulling another little tip out of my big grab bag of useful programmer tricks. These one is quite simple to do and I use it all the time. How many times do you have to go to your local file system to look at your solution's files? For me, it's all the time. Sure you could create a shortcut on your quicklaunch bar to your Visual Studio Projects folder but what if your SCCP places your source somewhere else? Here's what I do:

1. Open up Visual Studio .NET
2. From the main menu, click on Tools -> External Tools
3. Click the Add button
4. Enter the following values in the following fields

  • Title: Explore Here
  • Command: explorer.exe
  • *Arguments: $(SolutionDir)
  • *Initial Directory: $(SolutionDir)

* You can also use $(ProjectDir) but you'll have to highlight the project in Solution Explorer first.
5. Click on OK to close the External Tools dialog.

Now whenever you are working on a project, just click on Tools -> Explore Here and you'll get just what you asked for. Even better, make it a button on your toolbar for even easier access.

Comments

  • Anonymous
    September 10, 2004
    Im confused. Why not just click "Show All Files" in the solution explorer?

    Signed
    Confused Guy

  • Anonymous
    September 10, 2004
    I can think of several reasons:

    1. Show All Files works on a project level. If you have a solution with several projects each in their own directories, you can't see any files in the main solution directory.

    2. You have to click the Show All Files button for each project in your solution.

    3. How would I run an Explorer command on the files? e.g. Send To (compressed folder, email recipient), or mark as Read Only.

    4. The Show All button doesn't even show for C++ projects (haven't checked managed C++ though).

    I'm sure I can sit here and think or more all day, but that should be enough.

  • Anonymous
    September 10, 2004
    Cool tip. Thanks!

  • Anonymous
    September 10, 2004
    So simple and yet so cool. Thanks.

  • Anonymous
    September 10, 2004
    yes, good tip. I use something similar for launching a command prompt w/ a build environment enabled...

    Title: Command Prompt Here
    Command: %COMSPEC%
    Args: /K "SET PROMPT=# & C: & CD $(SolutionDir) & "C:Program FilesMicrosoft Visual Studio .NET 2003Common7Toolsvsvars32.bat""

  • Anonymous
    September 10, 2004
    Thanks. I never new you could do that.

  • Anonymous
    June 13, 2009
    PingBack from http://quickdietsite.info/story.php?id=154

  • Anonymous
    June 16, 2009
    PingBack from http://fixmycrediteasily.info/story.php?id=5565

  • Anonymous
    June 18, 2009
    PingBack from http://barstoolsite.info/story.php?id=5884