recently I started doing solidity tutorial. Everything was going okay on remix but when i switched to VS Code I got compiler error
I changed it to:
but it doesnt solve the question why 0.8.8 compiler version doesn't work.
are you using a framework like hardhat or similar. if so, it's not using the compiler set in vscode, so you can ignore it. If, like me, you find it too annoying, lookup the solidity configuration settings in vscode settings. you'll have to do a little research on those settings to set them properly but you can fake the entry and it makes the errors go away.