Issue #14 (File Previews vs. No Previews)07/27/22
|
Get a weekly dose of tools, articles, and other resources covering remote work, productivity, career well-being, and lots more.
|
|
|
When you have a workspace or folder open in VS Code, it can be a little confusing at first understanding how VS Code opens files when you click on them in the sidebar.
By default, you'll notice with the Explorer sidebar open, if you click any file you'll see the file seems to open in the editor window. But technically this is not really the case. If you click another file without editing the previously opened file, the new file's tab will replace the previous one.
In reality,
what's happening is you're looking at a 'preview' of each file being clicked, with each preview displaying under a single tab. You can tell if a file is in 'preview' mode if the file name is in italics, as the screenshot above indicates.
If you want to open multiple files that don't stay in preview mode until they're replaced, you can double click a file and it will open in regular open/edit mode. It will keep its own tab and you'll recognize its open status by the fact that the file name won't be in italics.
If you don't like this behaviour and would rather each file opens with single click with no preview mode,
you can adjust this via your settings. Open the Settings UI and search for "enable preview". You'll see a few options appear.
The second one in the image above is the one you want to change. Uncheck that box to disable file previews when navigating files in the Explorer.
You might like the default behaviour. It does take some getting used to at first, but there's always the option to change it if you prefer a more familiar 'open whatever I click' mode that doesn't use the temporary previews.
Now on to this week's hand-picked links!