How can I navigate to the next or previous procedure? - vb.net

In VB6 you can easily go to next procedure by pressing CTRL+Page Down and also previous procedure by pressing CTRL+Page Up.
However I can't find any way to do that using Visual Studio 2010 programming VB.NET; I want to scroll down or up to go to the previous or next procedure using a keyboard shortcut.

Yes, keybindings do exist and you're in luck; the keybindings below relate to Visual Studio 2010's Visual Basic.
It's come to my attention that these default keybindings aren't available in some installations of Visual Studio. If this is the case for you then proceed with the key-binding instructions below this section.
Visual Studio 2005, 2008, 2010
Next Method or Type: CTRL + ↓ or CTRL + PAGE DOWN
Previous Method or Type: CTRL + ↑ or CTRL + PAGE UP
All keybindings for Visual Studio 2010's Visual Basic can be found here, and more keybindings for other programming languages in Visual Studio can be found here
Same keybindings for other versions:
Visual Studio 2012, 2013, and 2015 (and any other version without the default keybindings)
Visual Studio 2012/2013/2015 Does not appear to have any Edit.NextMethod or Edit.PreviousMethod keybindings and the same behaviour can be observed for some installations of other Visual Studio versions, instead you'll have to assign your own:
TOOLS >> OPTIONS >> ENVIRONMENT >> KEYBOARD >> Select Visual Basic 6 from the Apply the following keyboard mapping scheme dropdown:
Find Edit.NextMethod and Edit.PreviousMethod in the Commands box:
Click within the Press Shortcut Keys box and press the shortcut keys you want to assign on the keyboard. In this case, let's copy the shortcut keys from Visual Studio 2010:
Once you've done that, click Assign and then do the same for the other command; the shortcut keys will now work
The Default key-binding is slightly misleading; it only applies if you open a file with Visual Studio that is not supported by the IDE, therefore you should be careful that you do not add a keybinding under this.

Related

Visul Studio 2022 with Visual Assist - GO button gets huge issue

I am using:
current version of Microsoft Visual Studio 2022 (64-bit) - Version 17.4.3.
current version of Visual Assist (Visual Assist build 2022.5)
I have a random problem, when Go button sometimes after pressing some function with ctrl + right click (go to implementation) gets huge.
How it looks like:
How it should look like:
The only solution which makes it smaller again is to close Visual Studio and reopen it again. I have already tried with no success:
Disable Visual Assist and reenable it
ctrl + scroll in many places

Keyboard shortcut for Line Number not working in Visual studio 2017

What is the shortcut key to jump to a line in visual studio 2017. I have installed visual studio 2010 and i used CTRL + G to jump to a specific line. After i installed visual studio 2017, when i use CTRL + G, it opens Immediate Window.
List of shortcuts in Visual studio 2017
I have VS 2017 aswel, and left CTRL + G works for me (see picture)
Otherwise take a look below 'tools' -> 'options' and then under 'environment' choose 'keyboard'. There you can change them to your needs.
I think it has some problem with additional Keyboard Mapping scheme where Visual Basic 6 was selected. I clicked the Reset button and then changed my mapping scheme option to Default and it's working fine now.

Visual Studio 2015 can't reassign keyboard shortcuts

In Visual Studio 2015, I'm trying to reassign the Edit.NextMethod and Edit.PreviousMethod shortcuts to anything. I've tried Alt+Up Arrow, Ctrl+Up Arrow, Shift+<, Ctrl+Shift+(+). It appears to save the shortcut after I click the assign button, and if I close and re-open the keyboard shortcuts it shows the shortcut I entered, but when looking at code it doesn't jump between methods. If I assign it to a keyboard shortcut that already exists, the keyboard shortcut still performs the old function, even though in the options it indicates it saved my reassignment. Alt+Down Arrow is an example of this, it still moves the line of code I'm on down even though I reassigned Alt+Down Arrow to Edit.NextMethod. Has anyone else tried this? Any ideas whey it's not working for me? Thanks!
It looks like a bug in VS 2015: Edit.NextMethod and Edit.PreviousMethod in Visual Studio 2015 don't work.
In Visual Studio 2015, we rebuilt the Visual Basic and C# IDEs and,
unfortunately, these commands were missed. We are planning to bring
them back in a future update.

Visual Studio 2013 close all Tool Windows

I would be delighted, elated even, if someone could tell me how to close every tool window in Visual Studio 2013 in an automatable fasion. Solution Explorer, Output Window, and Toolbox are all examples of the countless tool windows that can accumulate on my screen. I'm using Autohotkey to try to close them, but it has become impossible to do through blind keyboard shortcuts (AFIK.)
I'm not opposed to a plugin but something with just the keyboard would be ideal.
Thanks so much!
If you want to do it with Autohotkey, take a look at WinClose as MCL suggested. You might also need SetTitleMatchMode.
I'm still using Visual Studio 2010, but with some minor adjustments it should also work in Visual Studio 2012:
SetTitleMatchMode, 2 ;No need to enter the full title
Enter:: ;press enter to close all tool windows
WinClose, Microsoft Visual, Find and Replace
WinClose, Microsoft Visual, Solution Explorer
WinClose, Microsoft Visual, Class View
WinClose, Microsoft Visual, Property Manager
;...
Sleep, 1000
Return
Esc:: ;Use Esc to exit the script
ExitApp
Use "AU3_Spy.exe" form your Autohotkey folder to find the WinTitle(part) and some visible text.
Layouts-O-Rama is my take on the problem. To be found in the vs gallery here:
http://visualstudiogallery.msdn.microsoft.com/35966ad9-430f-4ad7-9186-4394b784e36c
Basically the addin saves tool window layouts. You could simply save a layout with all tool windows closed and assign a hotkey to it. To go even further you could save another layout with all the tool windows you like opened and assign a different hotkey to this.

Ctrl + Comma in Visual Studio 2008

I love control-comma in VS2010. Unfortunately, I have to now work on a project that requires (for now ...) VS2008. And my beloved short-cut doesn't work! Nor can I find any matching command in the IDE settings for Keyboard to assign Control + Comma to.
Is there a way to achieve the same thing (popup window, type the name of the class, and double-click or press enter to open it) in VS2008?
Visual Assist has an equivalent feature.