Search code examples
visual-studio-codekeyboard-shortcuts

VS Code: What is the step called when you double click a tab to un-italicize the label and what is the keyboard shortcut?


You click a file in the file tree. It is opened, but the title of the tab is italicized. You double click the tab to un-italicize the tab because if you didn't and you click a different file in the tree, the italicized tab will be replaced. What is the keyboard shortcut to change the current (presumably italicized) tab to non-italicized as if you had double clicked on it?


Solution

  • The according command is called View: Keep Editor and its default keyboard shortcut is Ctrl+K Enter.

    keep editor command

    You can also access this function via right click on the editor tab, there it is called "Keep open".

    keep open menu entry