This feature allows for seamless switching between a view and a view model, providing users with a quick and efficient way to toggle between the two.
Shortcut: Shift + V
A quick way to switch between a view and a view model by using 'Shift + V'
How it works behind the scenes
Gets the active document and checks if the filename ends with 'View.xaml' or 'Model.cs'.
If it is a View or ViewModel then it starts a search from the project the file is in and checks if there's a corresponding 'Views' or 'ViewModels' folder. If true it will then search these first for the corresponding file i.e. if the active document is a 'TestView.xaml' it will first search the 'ViewModels' folder for 'TestViewModel.cs' this should speed up searching and opening documents. If the search fails to find the corresponding file in the folder it will then search the whole project.
If the file is already open it will switch to it else opens a new document with the file.
In the future, I plan on making the shortcut customisable and working with more builds/versions of VS.