Visual Studio Code different compiler for contracts

I have different contracts with different compiler versions. In a hardhat-config.js I have the add different compiler versions. However, in the VS code you can set a workspace compiler that is valid for all contracts. Therefore, this does not quite work. My question is, how can I choose an individual compiler for a selected folder or file?

solidity: {
    compilers: [
      {
        version: '0.8.0',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
      {
        version: '0.6.2',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
      {
        version: '0.6.6',
        settings: {
          optimizer: {
            enabled: true,
            runs: 1000,
          },
        },
      },
    ],
  },