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?
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"
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."
Related
I'm coding in C# using Visual Studio 2022 for Mac.
I would like to turn off auto indent, words suggestions when I'm typing, and also the auto-placement of the closing "}" (it adds a space before it for some
reason).
I went into "Preferences" -> "Text Editor" and unchecked everything.
I also went into "Preferences" -> "Behaviour" and unchecked everything except for:
Generate additional undo steps for formatting.
Enable source analysis of open files.
Visual Studio Pro 2019 Version 16.11.1 shift-ctrl-up/down arrow used to jump to LOOP if cursor was at DO, or jump to END IF if was at IF, and vice versa.
But now it does nothing.
How can I fix this?
Make sure you have the option "Highlight related keywords under cursor" enabled in Options.
Tools >> Options >> Text Editor >> Basic >> Advanced >>
I'm editing a VB web page in Visual Studio 2017. I type AddHandler Page.Save, IntelliSense doesn't prompt me SaveStateComplete.
However if I spell out the full word, Page.SaveStateComplete does exist.
My Statement completion options don't hide advanced members.
Can I make Intellisense show SaveStateComplete?
You could try disabling "Hide Advanced Members" in the VS options.
Click the Tool Menu and then Options.
Navigate the tree menu
Text Editor --> All Languages --> General
and make sure that "Hide Advanced Members has nothing in it - no tick and no black box.
This is the second time i have installed VS 2012 and the first time the color formatting for xaml was working but not anymore. If i can change some element in the tools -> fonts and colors but i cant get the normal default scheme back with the blue | red | yellow look, even if i change back to defaults.
Any help would be nice. Thanks
I've had this exact same issue. The solution is:
close all running instances of Visual Studio
open a "Run" window and type in devenv /resetuserdata
That's it. Open your projects again and everything should work fine.
Beware: your personal settings will be lost. Recently opened projects list also.
Right click on the .xaml file -> open with option from the list choose HTML Editor With Encoding
You can try Tools -> Options -> Environment -> Fonts & Colors and Display Items as Use Defaults..as suggested by gerdi...Also make sure all options are ticked Under Tools -> Options -> TextEditor -> General...
Recently had to install Visual Studio on a new machine and when I open up my SQL scripts the editor is placing these blue lines around blocks of code. When the mouse hovers over these lines, text appears stating:
This is a block of SQL text.
You can modify this block with Query Builder
by choosing 'Design SQL Block' from the shortcut menu.
Finding this to be a nuisance and I can't seem to find any way to disable it.
In VS2005...
Tools -> Options -> Database Tools -> General ... uncheck "Enable DML markers". You'll need to close and reopen any sql scripts you have open that have the DML markers
If you'd rather keep the borders, but alter the color, the setting is the SQL DML Marker forecolor, under Text Editor, in Fonts and Colors:
Tools menu -> Options menu -> Environment section -> Fonts and Colors