So I have install the Solidity extension for Visual Studio.
V0.0.76 https://github.com/juanfranblanco/vscode-solidity
And when I start my Solidity code with
pragma solidity ^0.5.0;
I get the following error in visual studio.
Source file requires different compiler version (current compiler is 0.7.0+commit.9e61f92b.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
However I'm using truffle to compile and when I run truffle version I get
Truffle v5.0.2 (core: 5.0.2)
Solidity v0.5.0 (solc-js)
Node v12.16.3
So my code is compiling but I would like to know how to specify the solidity version to visual code as well to prevent error warning.