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

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"

enter image description here


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"

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".