From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Get the file path

Get the file path

- [Instructor] It is bonus day. You get two tips in this video, not one. Both of these tips have to do with working with the file system while you're in Visual Studio. For the first example, I want to look at a couple of ways of getting the full path to a file. The old way of doing this or the longer way of doing this is to get your file, select your file in solution explorer, and then you want to go down to properties windows and choose this full path. Now if you don't see the properties window, go to view, properties window to show it. Now you want to double click on full path and then right click in here and choose copy. Now you've got it in the clipboard. The way I prefer to do this is to go to the tab. So you open the file and you got this tab at the top, right click here and choose copy full path. That's a few less steps. The bonus tip is how to open a folder that contains the file. This has been in Visual Studio for a while, but I'll show you two ways to do that too. So here's…

Contents