How do I move the 'x' button to close an editor tab to the left side of the tab?
After searching endlessly for a solution to this, I found one, and decided it might be appreciated by others to know how to get their tab 'x' button on the left side.
Simply add the following to your USER SETTINGS json file.
"workbench.editor.tabCloseButton": "left",
Mac users rejoice!
Based on reka18's answer:
Click on Preferences
> Settings
and type workbench editor tab
Observe the option Tab Close Button
, there is a drop down, click and select left
.
If you are here in 2023, there is a better option (not sure if that was the case earlier) -
Cmd + Shift + P
=> Opens a search bar with a command>
- Type in
Open Settings
and selectPreferences: Open Settings (UI)
- You will get an interface where you again get a search bar on top -
- Type in
Close button
and you will see the following - - Update how you want it and that's it! Not even saving is required
(in settings.json)
For VS Code 1.85+
"workbench.editor.tabActionLocation": "left",
Setting description:
Controls the position of the editor's tabs action buttons (close, unpin). This value is ignored when
#workbench.editor.showTabs#
is not set tomultiple
For the change history, see https://github.com/microsoft/vscode/issues/196972.
For VS Code pre-1.85
"workbench.editor.tabCloseButton": "left",
Setting description:
Controls the position of the editor's tabs close buttons, or disables them when set to 'off'. This value is ignored when
workbench.editor.showTabs
is not set tomultiple
.
© 2022 - 2024 — McMap. All rights reserved.