Skip to content

VS Code: Control New Tab Position

VS Code Control New Tab Position

Today, we’re checking out a small VS Code setting that can actually make a big difference in your workflow.

By default, when you open a new editor tab, VS Code places it to the right side of your current tab.

But there are other options too, let’s find out more!

📹Prefer a video instead? Check this out:

Control New Tab Position

  1. Press CTRL + , (comma) or CMD + , (on macOS) to open the Settings
  2. Search for workbench.editor.openPositioning

From the dropdown, you can choose: left, right (default), first and last.

  • left – Opens the new tab to the left of the active tab.
  • right – Opens the new tab to the right of the active tab.
  • first – Open the new tab at the very start of the tab list.
  • last – Open the new tab at the very end of the tab list.

You can also directly modify your settings.json file by adding the following line:

"workbench.editor.openPositioning": 'left', // 'first' / 'last' or 'right'

Changing this setting is a small tweak, but it can make opening new tabs work the way you prefer.

Try the different options and stick with the one that feels most natural to you.

Happy coding 💜


Let me know what you think about this article in the comments section below.

If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.   
  

Comments