I have a php file with an line that goes like this:
include '../vendor/autoload.php';
The issue is, that this file is installed by Composer, so it does not currently exist. Is there a way to have VSCode ignore this line?
Assuming that you're using the php-intellisense linter, just try adding the // @php-ignore setting before the line you want to ignore :
// @php-ignore
line of code // that you want the linter to ignore
another line // but this line is not ignored.