If you are using the Code Runner plugin in VSCode to run Python files, you may encounter an issue where running multiple files causes the previous one to be overridden. This is because the plugin has a default behavior of terminating the previous process before running the next one. To resolve this issue, you can modify the settings for the plugin to allow running multiple processes simultaneously. One way to do this is by adding the following configuration to your settings.json file:
"code-runner.runInTerminal": false,
"code-runner.delayAfterRunInTerminal": 1,
"code-runnerПосле.runInTerminal": undefined
This configuration tells the plugin to run each process in a separate terminal and wait for the previous one to finish before running the next one. You can also adjust the delay time to suit your needs. Additionally, you can use the 'run multiple selected files' feature in the Code Runner plugin to run multiple files at the same time. This feature allows you to select multiple files in the editor and then run them all at once, without having to run them individually.