Xcode 12 released with a change to file navigation. It is totally different than how it was in earlier versions. Personally, I hate it and I am not sure why was this change made the default navigation style overriding the previous one I preferred. Even after using this editor for 3-4 months, I can’t figure out how to navigate to the right file. Keyboard shortcuts don’t work, the standard macOS gestures to go back and forward don’t work as expected. The only way to reach the desired file I could find was to fallback to the Quick open dialogue(⌘ + ⇧ + O) and it’s super counter-productive.

The Fix

With Xcode 12, files open in two types of tabs, window tabs and tabs, yeah even the names don’t make any sense. Window tabs are the old Xcode 11(and earlier) style tabs and the tabs are the new child tabs. If you would like to go back to the old style navigation where the gestures and keyboard shortcuts work, you can do it easily from Xcode preferences. But doing so took me a few hit and trials as the options are not well documented. The solution is to navigate to Preferences > Navigation and change the navigation style to Open in place.

This configuration completely hides the child tabs and all the shortcuts and gestures work fine. I also prefer to have the Optional and Double-click navigation to use window tabs as they seem more natural, like how new links/tabs open in a web browser, you can choose what works for you. Most of my friends were facing this issue, if you were also facing this, I hope this post helps you the way it helped me and my friends. ;)