VS2019: How do I set up Ctrl-Tab and Ctrl-Shift-Tab as next/previous tab keyboard shortcuts? (ASP.NET problem)

  • Thread starter Thread starter Yannis Kabilafkas
  • Start date Start date
Y

Yannis Kabilafkas

Guest
Hello all,

here's my problem. I use Visual Studio 2019 working with ASP.NET pages and prefer to use Ctrl-Tab and Ctrl-Shift-Tab as next/previous tab keyboard shortcuts. But when I try to set the shortcuts up things do not work very well. Specifically, Ctrl+Tab works as expected, but when having a bunch of ASP.NET pages open and backing up with Ctrl+Shift+Tab, navigation gets stuck into the same tab, switching between the Design-Split-Source views. Extremely frustrating! I do not remember older versions of VS having this problem. Does anyone have any ideas as to what's causing the problem?

Here's what I do in case anyone wants to try to recreate the problem.

1) Tools -> Options -> Keyboard

then pick Visual C# 2005 and press the Reset button to start fresh.

2) I remove all shortcuts for: - Window.NextDocumentWindowNav (Ctrl+Tab removed) - Window.PreviousDocumentWindowNav (Ctrl+Shift+Tab removed) - Window.NextDocumentWindow (Ctrl+F6 removed) - Window.PreviousDocumentWindow (Ctrl+Shift+F6 removed)

The last two are most likely not needed but I remove them just in case.

3) I then proceed to my commands of interest to remove current shortcuts: - Window.NextTab (Ctrl+PgDn, Ctrl+Alt+PgDn removed) - Window.PreviousTab (Ctrl+PgUp, Ctrl+PgUp (HTML Source), Ctrl+PgUp (HTML Design), Ctrl+Alt+PgUp)

Notice there's a little asymmetry here, two shortcuts versus four. Perhaps this has something to do with my problem.

4) Then finally I assign the shortcuts - Window.NextTab (Ctrl+Tab assigned) - Window.PreviousTab (Ctrl+Shift+Tab assigned)

But then functionality is problematic, as described.


If anyone can take the time to reproduce the problem and offer some feedback or solution, I'd greatly appreciate any help.

Continue reading...
 
Back
Top