Is there a single keyboard shortcut to switch between the two most recently visited tabs in Xcode?

左心房为你撑大大i 提交于 2019-12-02 12:53:04

问题


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.

来源:https://stackoverflow.com/questions/55639958/is-there-a-single-keyboard-shortcut-to-switch-between-the-two-most-recently-visi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!