Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open new tab just next to the current active tab

Tags:

xcode

When you hit ⌘ command + T in Xcode it will open new tab, but in the last position.

How can I change this behavior to be able to open new tab just next to the current active tab?

like image 818
iOSGeek Avatar asked Jun 16 '16 12:06

iOSGeek


People also ask

How do I get a new tab to open next to current?

You can use `Ctrl-Y` (`Ctrl-Shift-Y` on Windows) to open a new tab at the default location. Note for Chrome --------------- Keyboard shortcuts are not automatically set up.

How do I open tab next to tab in Firefox?

Firefox has a built-in setting ( about:config item browser. tabs. insertRelatedAfterCurrent ) to automatically open tabs next to the current tab, but it only works when clicking a link inside the current tab, and will then open that tab next to the current one.

When a new tab opens make it active?

Make new tabs active in Chrome 1) Check out Tab Activate (Free) on the Chrome Web Store. 2) Click to Add to Chrome if you like and confirm by clicking Add Extension in the pop-up window.


2 Answers

I haven't come across anywhere or found an answer myself for this. The logical explanation for Xcode opening the current file in a new tab and not the next file would be that Xcode cannot figure out what file you wish to open in the new tab, though in the navigator you may see the files are one below another, but it is up to you to open whichever file you want and Xcode let's you be the judge of that. Perhaps Xcode could just open a new empty tab but instead of that it opens a new tab with the same file and let's you choose which file you want to pick.

OR

There is one more option but it ain't Cmd + T. You can select the file you want to open in the new tab holding (don't let go) Option + Shift and then when a dialogue opens, you can click the + mark on the top right of that window.

OR

You could set the Double-click Navigation (Xcode -> Preferences -> Navigation) to Uses Separate Window Tab (Uses Separate Tab in Xcode <12).

like image 163
Mtoklitz113 Avatar answered Sep 22 '22 11:09

Mtoklitz113


In Xcode 11 this is the default behavior now. Cmd + T opens a tab next the active one.

like image 22
iOSGeek Avatar answered Sep 21 '22 11:09

iOSGeek