When I'm coding I often like to jump back and forth between the two most recently visited open tabs in an IDE. Is there any single keyboard shortcut in Xcode for that?
In e.g. Android Studio for macOS you can use Ctrl+Tab to achieve this like in many other IDEs (and analogously, switching between the two most recently visited applications in macOS is achieved by using Alt+Tab). But if I press Ctrl+Tab once in Xcode and then do it again later, I don't jump back and forth between the two most recently opened tabs. Instead I continue through all the opened tabs in Xcode in a circle.
I know I can alter between pressing Ctrl+Tab and Shift+Ctrl+Tab to circle forward and backward between all opened tabs but that is not what I want since that doesn't necessarily switch between the two most recently visited tabs, instead always between the two most adjacent tabs. Also, I need to remember if I held down Shift or not the last time I used the keyboard shortcut to avoid ending up in some other tab if I have more than two tabs open.