开发者

Turn Off Visual Studio/VB.Net Lines around each method

In Visual Studio when working in VB.Net, it automatically creates lines/regions around methods etc.

How can this be turned off somewhere in the options?开发者_Python百科


If you open Tools ==> Options, and select Text Editor, there is a "Basic" section for Visual Basic. This option is on the "VB Specific" sub-section. Unselect "Show procedure line separators".


Using Visual Studio 2017 and above

For C# and Basic

  • Open Tools > Options or press Alt + T + O
  • At the top of the list search for "Show procedure line separators"
  • select Advanced
  • In group box Outlining
  • Uncheck "Show procedure line separators"

Turn Off Visual Studio/VB.Net Lines around each method


This is known as "Outlining Mode" and can be disabled by doing the following

  • Tools -> Options -> Text Editor
  • Navigate to the Basic -> VB Specific sub category
  • Uncheck "Enable outlining mode"


For anyone that comes across this and is using Visual Studio 2012. Those lines are off by default. If you want the lines back then you need to:

  • Tools -> Options -> Text Editor
  • Navigate to the Basic -> VB Specific sub category
  • Uncheck "Enable outlining mode"

Yes, these are the same steps that JaredPar explained to turn the lines off. However, it's completely backwards in 2012 and unchecking this option will bring the lines back.

Way to go Microsoft!


The menu sequence is a bit different for VS2015.

  • Tools -> Options -> Text Editor -> Basic -> Advanced

  • Uncheck "Show procedure line separators."

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜