nbloqs
nbloqs

Reputation: 3282

Visual Studio Code replaces my opened tabs when opening file from Finder

I'm using Visual Studio Code v1.21.1 on macOS Sierra.

I have a workspace with about 9 or 10 tabs with the files that I used all the time. But if I want to open a new file associated with VSC by double clicking it on Finder, instead of just opening it in my current instance as a new tab, it closes the instance (with all the other 10 files) and opens alone.

I can't find any setting that changes this behavior to what other editors do, and which is basically opening a file from the operating system's Finder in a new tab, whilst keeping all my other stuff opened.

Upvotes: 12

Views: 4309

Answers (1)

Ahmed Osama
Ahmed Osama

Reputation: 388

This happens because of preview mode in VsCode which opens the file as a preview (the file opened as a preview will have italic file name), you have to pin the preview by editing or douple clicking the tab.

you can also disable the preview mode from the setting screen under workbench.editor.enablePreview

you can find detailed explanation here https://www.brcline.com/blog/force-vscode-open-files-new-tab

Upvotes: 12

Related Questions