.NET Tips and Tricks

Blog archive

Get the Path to Your File in Visual Studio

One of the best things about Solution Explorer is that I can right-click on a Project, pick "Open Folder in File Explorer" and, a second later, I'm in Windows Explorer, able to work with the files that make up the project. This also works with Solutions or, really, any folder displayed in Solution Explorer (for example, if you have Show All Files turned on, you can use this with the bin folder or obj folders).

Often, however, I'm not focused on the Project (or Solution) as a whole: I'm interested in one specific file -- usually, the one that I have open in my editor window. When that's the case, I can just right-click on the file's editor tab and select "Open Containing Folder." This not only opens the appropriate folder in Windows Explorer, it also selects and highlights the file I'm interested in.

Posted by Peter Vogel on 04/21/2016


comments powered by Disqus

Featured

  • Google Counters GitHub & Microsoft with Jules Agent & Enhanced Gemini AI

    As our new age of agentic AI takes shape, Google is stepping up its game with the introduction of the Jules agent and enhanced Gemini AI, which could be seen as a direct response to the growing competition from Microsoft and GitHub, who have been making significant strides in the space.

  • Asynchronous and Parallel Programming in C#

    Developer educator and .NET MVP Jeremy Clark talks concurrent programming ahead of an intermediate-level two-day training session next month.

  • Microsoft Heralds 'Age of AI Agents' at Build 2025

    Microsoft ushers in a new era at Build 2025, unveiling a wave of AI-powered agents designed to transform software development, supercharge productivity, and redefine the future of coding.

  • The Return of Codex AI — as an Agent

    OpenAI's "Codex" AI model is back, in a new form from the 2021 offering that powered the original GitHub Copilot and kickstarted the GenAI craze.

  • Matrix Inverse Using Newton Iteration with C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of computing a matrix inverse using the Newton iteration algorithm. Compared to other algorithms, Newton iteration is simple and easy to customize, but the technique is relatively slow.

Subscribe on YouTube