Adding folders to the Class View in Visual Studio

I didn’t know this, but you can add folders to the Class View. You can then drag classes to it. What’s even better, you can drag methods to it!

Thanks to Sara Ford for her post describing this.

There’s more good news! When you’re editing code in the editor and you’re over a class or method, you can use the ‘Synchronise Class View’ command (I’ve mapped mine to a keyboard short-cut, but you can add a toolbar item) to synchronise the Class View to the item you’re currently editing. Once synchronised, you can go to Class View and drag that into one of your folders. Also, when you do this, you won’t upset any of your team with changes to the solution or project files – because these are your settings, and hence are stored in the .suo file (which, on the other hand could be a pain, because user option files shouldn’t be checked into your source repository).

Anyway, this is the next best thing to a ‘bread-crumb’ feature in the editor that let’s you jump around to favourite places in the the code. Maybe the bread-crumb feature will be in the next version of ReSharper?

🙏🙏🙏

Since you've made it this far, sharing this article on your favorite social media network would be highly appreciated 💖! For feedback, please ping me on Twitter.

Leave a comment

Comments are moderated, so there may be a short delays before you see it.

Published