Giter Site home page Giter Site logo

togglefeatures's Introduction

Disable Solution Explorer's Dynamic Nodes

Build status

Download the extension at the VS Gallery or get the nightly build.


A single-purpose extension that makes it easy to disable/enable Solution Explorer's dynamic nodes such as inline Class View nodes from C# and VB files.

Warning - here's how it works

This extension disables all dynamic nodes implemented using the IGraphProvider interface, so there might be other nodes besides the Class View nodes that will be disabled.

However, this extensions allows you to turn the feature back on without leaving a trace, so it is safe to try out.

Visual Studio doesn't allow to turn off just a single implementation of the IGraphProvider, such as inline Class View, so the entire feature has to be disabled.

That's unfortunate.

Inline class view

Solution Explorer injects extra virtual nodes under certain code files to give a sneak peek inside them.

Solution Explorer

Though it provides more information about a file, it also adds complexity to the Solution Explorer that may confuse more than help.

File nesting

One of the issues with in inline class view is that it makes it more difficult to find nested files.

When files are nested under C# files, it is impossible to tell since it looks like any other C# file with the expander icon next to it.

File nesting closed

It's only when the file is expanded that the nested file becomes visible.

File nesting

In this example the file VSPackage.resx is nested under the C# file VSPackage.cs but it's only visible when the file is expanded.

Hide inline class view

Under the top-level View menu, a new button is added to toggle the visibility of the inline class view.

View menu

Clicking the button will prompt the user with a question to proceed and restart Visual Studio.

Prompt

Clicking Yes will toggle the inline class view feature on/off and restart VS.

The result is a much cleaner Solution Explorer.

Solution Explorer after

License

Apache 2.0

togglefeatures's People

Contributors

madskristensen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.