wkrueger
wkrueger

Reputation: 1373

VS Code: Focusing the current editor

Let's say I've got the following scenario:

I want a hotkey that hides the explorer, reduces the size of the unfocused tabs and focuses the main editor tab. Does a think like that exist (or any addon does that?).

Upvotes: 1

Views: 1750

Answers (1)

ifconfig
ifconfig

Reputation: 6832

  • By default in VS Code, Ctrl+B opens/hides the sidebar, of which the File Explorer is a part.

  • Also by default, when the main VS Code window is resized, the editors also resize to occupy the same proportions of the viewport.

  • workbench.action.focusActiveEditorGroup, the command that focuses the most recently used editor group, doesn't have a keyboard shortcut assigned to it by default, but one can be assigned to it.

Upvotes: 6

Related Questions