Intellisense doesn't show Page.SaveStateComplete - vb.net

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.

Related

MS Visual Studio 2019: how to change background color of text editor's tooltip window

Winforms project, a form has some code in the Form_KeyDown event.
When i hover the mouse over the name of the event (Form_KeyDown) in the text editor of the form, a tooltip window appears. Going to Tools -> Options -> Environment -> Fonts and Colors i've searched around but i could not find how to change the tooltip's background color, either in Show Settings for: "Text Editor" or "Editor Tooltip" or "[All Text Tool Windows]". Where is the setting for changing the tooltip's background color (if any)?
For future reference, i have finally found the answer here: https://developercommunity.visualstudio.com
Check answer by Paul Chen in that link.
This was fixed in some update of VS2015.
Switch "Show settings for:" to "Environment" and you'll see "Tooltip" and "Tooltip Border", try change the "Background Color" of them.

VB.Net Coder Menu Not Showing

I am using VB.Net 2015 edition and it's coder menu not showing. How to add that?
Image Of Menu in Coder:
Tools > Options from the main menu. Text Editor > Basic > General and check the 'Navigation bar' box. ALWAYS look in the IDE options when you want to manipulate the IDE. Yes, there's a lot in there, but that's why you should have a look through it BEFORE you need to use it: so that you have a fair idea of what's available. Anything related to the code editor window specifically is under the Text Editor section.

How to google from the context menu of the Visual Studio 2015 code editor

how can I modify Visual Studio 2015 to be able to search the internet (my fav search engine happens to be google) from the context menu in the code editor?
Ideally, I would like it to open as a new tab in my (default) external browser, because the internal web browser is still...lacking, shall we say?
I found one extension "web search" for older VS, but I have found no extension that works with VS 2015. I found no article that still works.
For comparison, when you're in Chrome, you can select some text, right click and say Search Google for 'what you selected'.
I think this would be handy when learning new technologies from a project that uses those technologies, or just for help.
Ok this turned out to be fairly easy. I just added a tool to Tools, External Tools
Command: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
Arguments: https://www.google.com/?gws_rd=ssl#newwindow=1&safe=active&q=%22$(CurText)%22
I enclosed the $(CurText) variable around quotes (%22) so that it would search on the exact phrase.
Then, to make it more accessible and actually put it in the context menu (and other places), I clicked the Move Up button to make it the first command, then customized the Standard toolbar to include Tools.External Command 1. I also added it to Other Context Menus | Html Context and Editor Context Menus | Code Window
Then I also went into Tools, Options, Keyboard and associated Tools.ExternalCommand1 with Alt+G
IMPORTANT: Because Visual Studio (still, in 2015) doesn't save some modifications to the IDE until it shuts down, you need to shut down all other instances of VS and then lastly shut down the instance that you used to enact these IDE modifications for them to "stick". And, if VS 2015 is like previous versions, be prepared for the menu / toolbar modifications to simply go away one day, at which point you'll just have to redo them.

Attach a keyboard shortcut to 'Collapse All' items in solution explorer with Visual Studio 2012

Like I said in the title of this question, is it possible to attach a keyboard shortcut to collapse all items in the solution explorer with Visual Studio 2012?
In previous version; 2010, I was able to create a macro to enable this feature but in Visual Studio 2012, there is no more support for macros.
I'm able to right click onto item in the solution explorer and choose 'Collapse All' but I prefer to just typed 'Ctrl+Shift+C' to do the same job.
FWIW, this is the best I've been able to come up with so far.
Alternative 1
Press Ctrl+ยจ to put focus in the search box above the Solution Explorer.
Press Shift+Tab to move focus to the toolbar.
Use the left arrow to move focus to the left, until you hit the Collapse All button (four times. YMMV).
Alternative 2
Press Ctrl+Alt+l (or whatever your personal shortcut is) to focus the Solution Explorer.
Press Shift+Alt to focus the Solution Explorer toolbar. This puts the focus on the Home button on the toolbar.
Use the right arrow to move focus to the right, until you hit the Collapse All button (three times).
Press Enter.
Alternative 3
Press Ctrl+Alt+l (or whatever your personal shortcut is) to focus the Solution Explorer.
Press and hold the left arrow until you've reached the top node (the Solution node).
Press the up arrow to put focus in the search box above the Solution Explorer.
Press Shift+Tab to move focus to the toolbar.
Use the left arrow to move focus to the left, until you hit the Collapse All button (two times. YMMV).
As you can see in the screenshot below, there is an option called Collapse All and a shortcut key next to it.
Now this shortcut key will not work for you !
Unless ofcourse, you set it up using Tools > Options > Keyboard. The command name is CollapseInSolutionExplorerAction. Search using this command name and assign a shortcut key of your choice.
That's it and you are ready to use your shortcut key !
Source
Visual Studio 2012 / ReSharper 8.0.1:
The command is 'ProjectAndSolutionContextMenus.Project.ReSharper_CollapseInSolutionExplorer'.
I suggest you to try CodeMaid extension for Visual Studio. It provides a command "Collapse All Projects Recursively" that has customizable shortcut (by default, it is Ctrl+M,-). It has some other nice abilities, like switching between .cpp and its .h files, joining lines, etc.
I have searched on the net a way to do this when I have first install VS2012 ..
I have just found the solution, so I share it :)
you can do this by adding your visual studio version to an existing Extension ...
Download the extension for VS 10
Change the extension from vsix to zip
extract it and open the file extension.vsixmanifest
Find this xml section : SupportedProducts
Add this :
<VisualStudio Version="11.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
you can also try version 12 for visual studio 2013 ...
zip it, and change the extension from zip to vsix.
Now you can Install it.
after install it, Goto Tools -> Customise and click on the keyboard button.
Search "CrossProjectMultiProject.CollapseProjects" and assing the shortcut you like.
Have a nice codding.
Please +1 if this help you
ps. sorry for my bad English, im French ;-)

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