How to include compiler flags in Visual Studio Code?

The easy option is to pass them as args in your tasks.json configuration: { “version”: “2.0.0”, “tasks”: [ { “label”: “build-all”, “type”: “shell”, “args”: [ “-std=c++11”, “-lfftw3”, “-L”, “/path/to/libs”, “/path/to/file.cpp” ], “command”: “g++”, } ] } The more maintainable, shareable option is to create a Makefile and set them all there: # Specify compiler to … Read more