user390480
user390480

Reputation: 1665

Limit Visual Studio's edit area to display just one function or method

Years ago, when I worked in VB 6, I could make the editor window display only the function/method that I was working on -- I miss that.

Is there a way, an add-in, or a hack, that would allow me to do the same thing now?

Thanks!!

Upvotes: 10

Views: 1581

Answers (4)

Sergey Vlasov
Sergey Vlasov

Reputation: 27880

I've recently released (commercial) Task Canvas extension for Visual Studio 2015 that lets you choose methods or code selections to work on.

Upvotes: 1

Mohsen Heydari
Mohsen Heydari

Reputation: 7284

If I were you I would implement my class into partial classes, and move my stable code to one of them, focus my code implementation in one of the classes:

public partial class Employee
{
    public void StableFunction()
    {
    }
}

public partial class Employee
{
    public void UnStableFunction()
    {
    }
}

Upvotes: 0

naed21
naed21

Reputation: 155

It would appear that this functionality was removed. And that there is no way around it, perhaps you could look into making your own plugin for Visual Studios?

Upvotes: 3

gunr2171
gunr2171

Reputation: 17447

I do not believe this is possible by official pathways. However, there are many plugins that allow you to quickly jump to a function/method. I would suggest a few of the following:

  • There is a "select member" drop down list at the top-right
  • CodeMaid has a "spade" window that shows you all items in a file
  • If you are willing to spend money, VS10x Code Map v2 is a good option

Upvotes: 0

Related Questions