Probably, the closest you will get is to use --asm output from solc.
With solc 0.8 you can get the intermediate Yul representation with --ir.
solc -o build --asm --ir MetaCoin.sol
should generate MetaCoin.evm and MetaCoin.yul files in build directory.
I went through this error recently.
This is happening because the compiler version configured on VS Code workspace is different from the version you want.
To fix that just right click on the error and select the option
Solidity: Change workspace compiler version (Remote)
It will open a drop-down with the available versions and you just pick the 0.7.6.
If you are importing other contracts, those too need to be supporting the same pragma solidity version you are using on your main contract.
Another thing would be an issue with truffle, where the solc version you are using is not the same one that you are downloading when trying to run the compile command. this used to occur before but it might be the issue. ...