setup Vscode Mac(high sierra)

I can’t add the paths needed to be able to configure Task.json or c_cpp_properties.json in Vscode Mac (high sierra)

clang main.cpp -o test -L /Library/Frameworks/SDL2.framework/Headers -F /Library/Frameworks/ -framework SDL2

in terminal it works perfectly.
this is the error i get when i try to compile the program

clang: error: linker command failed with exit code 1 (use -v to see invocation)