1

When opening a file with Ctrl + P, I'd like it to replace my selected tab, instead of opening a new one. Any way to do this ?

Thanks

1
  • 1
    There is no built-in way to do this if that current editor is not already in Preview Mode. But see stackoverflow.com/a/60218148/836330 for a keybinding and macro that will do it. Commented Jul 30, 2021 at 17:27

2 Answers 2

2

You can enable by adding "workbench.editor.enablePreview": true and "workbench.editor. enablePreviewFromQuickOpen": true to your settings.

Whenever you open a new file, this will replace the existing tab.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks ! But I´d like to be able to chose to replace it or not, with a shortcut. Do you know of a way to implement this ?
I used to work by changing the settings, but may be there is a way with shortcut. I would be happy when someone share with us.
-1

This setting is found here : Files -> Preferences-> Settings

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.