File Switch is a Visual Studio Code extension that allows you to enable or disable files within your project.
This extension allows you to selectively enable or disable files that are included in your project. This can be useful when you have files that are not always needed, or when you want to temporarily remove a file from your project without actually deleting it.
By disabling a file, it remains in the project directory but you can prevent other files in your project from accessing it. This can help you locate and fix issues with your code on file removal, especially if you have multiple files that depend on the same resources, while keeping the resource file available for future reference if needed.
When a disabled file is optional, enabling or disabling it determines whether your code or program will take that file into account. For instance, a config file can be enabled ('config.cfg') and your code will use it, but if you disable it ('config.cfg.disabled'), your code won't find it and will apply a default config that you manage.