Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code - Insert new tabs to the right

In Visual Studio Code, is there any way to have new tabs open to the right of all existing tabs? When I click a file in the explorer, it inserts the new tab to the right of the currently opened file's tab, instead of placing it at the end of my tab list.

See here for example. I'd like the dashboard.component.html to open at the end of my tab list, instead of right in the middle of my currently ordered tabs. We have this feature in Visual Studio like this.

like image 686
Edward McNealy Avatar asked Mar 22 '19 14:03

Edward McNealy


People also ask

How do I move VS Code bar to the right?

VSCode tip: You can move the sidebar/file explorer to the right-hand side of your editor via View > Appearance > Move Side Bar Right.

How do you alternate tabs in VS Code?

When using Visual Studio Code on Windows, you can use CTRL + PAGE_UP to switch to the previous tab, and CTRL + PAGE_DN to switch to the next tab. You also have the ability to switch to tabs based on their (non-zero relative) index. You can do so, by pressing and holding ALT , followed by a number (1 through 9).

How do you open a tab from the right side?

All settings are configurable and are automatically synced across your devices if you're signed in to Google Chrome. The default keyboard shortcuts are: - Alt+T to open a new tab to the right of the current one. - Alt+H to open a new tab to the left of the current one.


1 Answers

Try:

"workbench.editor.openPositioning": "last"

Workbench › Editor: Open Positioning

Controls where editors open. Select left or right to open editors to the left or right of the currently active one. Select first or last to open editors independently from the currently active one.

Click the gear icon in the lower left, choose "Settings", search for the above setting and change to last.

like image 139
Mark Avatar answered Oct 24 '22 04:10

Mark