How to decrease the tab opened in Visual Code and show navigation arrow between tabs?

Asked

Viewed 107 times

3

How to decrease the tab opened in Visual Code and show navigation arrow between tabs?

In case, I want to decrease the size of the tab of each open file, and/or when I open several files, be able to visualize with some arrow, the same has in Visual Studio. Would have as?

inserir a descrição da imagem aqui

  • 1

    I guess there’s no way. I took a cursory look at the Theme Extensions API Vscode and found endpoints to swap icons, colors, create analytical view trees but change the tab size of the code guide not found.

  • 1

    I see you had a vote to close the question. It makes no sense, and it fits perfectly in the option: "common tools among programmers, when applied in software development". When such vows occur, one could seek to understand the community more.

2 answers

3

In the user interface guide there is nothing about navigating arrows by Tabs, maybe this has existed in some previous version, but no longer exists, at least not in the official documentation as you can see here https://code.visualstudio.com/docs/getstarted/userinterface#_tabs

However here is a workaround, you can click on the icon of ... right at the end of the Tab Groups, there has the option of Show Opened Editors, so will open a dropdown with all the files that are currently open.

Vc tb can use keyboard shortcuts to quickly navigate between tabs. Here is the complete list of shortcuts https://code.visualstudio.com/docs/getstarted/userinterface#_Keyboard-shortcuts
(see the correct shortcut for your operating system!)

  • ⌥⌘→ vai para tab da direita
  • ⌥⌘← vai para tab da esquerda

inserir a descrição da imagem aqui

3


It is possible to set the size of tabs to one of two options:

  • fit - Separator occupies the size needed for the name to be visible
  • shrink - Separators are adjusted in size so that all are visible

This setting is done in File > Preferences > Settings:

inserir a descrição da imagem aqui

Then at the top of the Settings write tabSizing to access the Setting right and choice shrink:

inserir a descrição da imagem aqui

See an example with fit which is the default value:

inserir a descrição da imagem aqui

And an example with shrink:

inserir a descrição da imagem aqui

Note that my example was forced and all files have the same name, so it is difficult to figure out which one is in. In a more real example it will be more evident.

As for the arrows to navigate between tabs I do not know such option and suspect that does not exist, but can always use shortcuts. On windows and linux you can use:

  • Ctrl + Tab to move to the next tab
  • Ctrl-Shift-Tab to go to the previous tab
  • 1

    It’s an option too, good Isac!

  • That’s exactly what I needed. Thank you Isac.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.