Sublime Forum

Tab Close Buttons on the left of the tab title


As a user (mainly on mac), I’d like to be able to close many tabs quickly (Other than using cmd+w). Clicking on the close button (x) on the tabs is how I would like to do this, but the tab titles make the tabs different sizes. To alleviate this, a simple solution is to move the tab close buttons to the left of the title. This would essentially make the tab close buttons in the same spot. Every time a tab is closed, the next close button would be directly under the mouse.

Thanks for your time and commitment!




Close buttons are in the upper left of windows on Linux, OS X, and there is even one in the upper left on Windows (though they hide it).

As you mentioned you are “mainly on Mac”, it would also match the standard location for a tab’s close button on OS X. E.g. Safari tabs and Finder tabs also have the close button on the left.



In case you missed it, you can cmd-click on a tab and, from the local menu, select “Close Other Tabs” or “Close Tabs to the Right”.



It is unfortunate that tab close buttons are placed on the right and their position not (easily? at all?) customisable - for someone who doesn’t come from Windows it feels like a punch in the face.

Is it possible to change the position to the left hand side of the tab ? Where/how ? There is a

"class": "tab_close_button"

in a sublime-theme but I don’t know if there is an attribute I could use.



This is already possible in ST4; there’s a setting that controls it, which as seen here defaults to be on right everywhere except on MacOS, where it’s on the left. So in that version it will look the way you want by default unless you go out of your way to change it.

	// Determines which side the close button is on. The default for OSX is true
	// (on the left) and for other platforms it's false (on the right).
	"show_tab_close_buttons_on_left": false,
1 Like


Old post, but came here looking for the same,
i have that setting with ‘true’, but close buttons remains on right side.

Maybe a bug?



This feature needs to be supported by the theme you’re using. Is it working for you with the default theme?



You are right, just changed theme and the buttons moved to left. (Was using ayu theme)

Thanks a lot!