Limit the editing area of ​​Visual Studio to display only one function or method

A few years ago, when I was working in VB 6, I could make the editor window display only the function / method that I was working on - I skipped this.

Is there a way, add-on or hack that will allow me to do the same now?

Thanks!!

+8
c # visual-studio visual-studio-2010
source share
4 answers

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

  • In the "select item" drop-down list in the upper right corner
  • CodeMaid has a "spade" window, which displays all the elements in the file
  • If you are ready to spend money, VS10x Code Map v2 is a good option.
0
source share

It appears that this functionality has been removed. And what's not around it, maybe you could learn your own plugin for Visual Studios?

+3
source share

If I were you, I would implement my class in partial classes and transfer 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() { } } 
0
source share

I recently published a (commercial) Canvas extension for Visual Studio 2015 that allows you to choose the methods or code options that you need to work on.

0
source share

All Articles