Visual Studio Code allows you to set a maximum limit on the number of tabs that can be open at a time in the editor. This helps you stay organized and work more efficiently while coding. Here's how to do it.
Setting VSCode Max Opened Tabs
1) Open VSCode Settings.
2) Filter the settings with
workbench.editor.limit.enabled to true
workbench.editor.limit.value to the max amount of tabs you would like.
Source: VSCode Twitter