My editor of choice for a long time has been Vim. I recently switched to VSCode because of the improved integrations for work at my company.

The way I like to work is to have multiple splits open, with one file per split:

The Problem

I tried to get this workflow in VSCode, but it would open multiple files per split, with each newly opened file going in a new tab in the split rather than replacing the file in the split. This was really annoying. Closing a split required closing ALL of the file tabs that had accumulated in that split, and I would end up with the same file open in different tabs in different splits (I can’t get a screenshot of this unfortunately – for some reason I can’t get the original problematic behaviour back, which is almost as concerning as the problem itself).

The Fix

The fix was to enable the Enable Preview settings. I enabled them all to make sure I always get the same behaviour:

Here is the corresponding JSON:

{
  "workbench.editor.enablePreviewFromQuickOpen": true,   "workbench.editor.enablePreviewFromCodeNavigation": true
}

Create a website or blog at WordPress.com