Home > Blockchain >  In vscode, how to open new files in new tab but with next tab immediately to right of current tab?
In vscode, how to open new files in new tab but with next tab immediately to right of current tab?

Time:05-24

I keep searching for this but there is a lot of search noise. Most hits are from vscode open in new tab. Nothing to do with tab location. Other editors seem to have search hits.

So I want to ctrl-p, type file, hit enter and have the tab open next to my current tab instead of at the end of whatever hundreds of tabs I have open.

CodePudding user response:

double Click after the left tab

CodePudding user response:

The setting that you are looking for is dubbed openPositioning

Add the setting below to your settings.json file. When you add it, choose one of the values in the list at the bottom of the answer. There are four different ways to customize it. If none of the four configurations suit your needs, you can then opt for submitting a feature request @ VS Code's GitHub Page.


        "workbench.editor.openPositioning": " ... "


Below are the configurations that can be used:
  1. "right"
  2. "left"
  3. "first"
  4. "last"
  • Related