How to toggle between 2 tabs when multiple tabs are open

I develop C# and web apps professionally, and my preferred IDE is VSCode (I do use Visual Studio when I have to - but stay as much as possible in VS Code)

I have started working on a MacOS app, just for fun and to lean Swift / swiftUI, so I have spend some time with XCode now, and I have tried to lean the useful shortcuts

One shortcut that I do not think exist, which is used all the time 'toggle between current tab and last used tab'.

I'm not talking about switching between tabs sequentially with shift - cmd - bracket, but instead one that switch just between tab A <-> B. and If you are on tab B and select tab C, then it will switch between B <-> C

Is there such a shortcut ?

I know I can just click the 'Add Editor to the right' for the one file, and that is what I have been doing. But simply toggle between views is many times faster

Thanks

How to toggle between 2 tabs when multiple tabs are open
 
 
Q