Visual Studio Code Editor Tabs

30 Jun 2024

VS Code is a great IDE for all sorts of languages - especially when I stray outside of the Java ecosystem, where I mainly use NetBeans or Eclipse (think JavaScript, Node, Sass, and many more).

But whenever I have set up a new installation on a new computer, I have always forgotten about how edit previews work, compared to simply opening each file in a separate tab.

I need to go to File > Preferences > Settings, and then I need to set Workbench > Editor > Enable Preview to false (by unchecking the checkbox):

This ensures each single-click on a file causes the file to open in a new editor tab, instead of replacing the previously opened tab. (I tend to expect a file to open in this way without needing to double-click on it.)

Setting Workbench > Editor > Show Tabs to multiple is necessary, but not sufficient.


ide