VsCode Fortran Settings Modern Fortran [Miguel Carvajal] Fortran highlight plugin. C/C++ for Visual Studio Code [Microsoft] C/C++ debug plugin also supports fortran. Toggle debug and modify the example launch.json and tasks.json files. Makefile Tools [Microsoft, optional] You can set make command in tasks.json or use this plugin to compile make project. // vscode settings { "makefile.launchConfigurations": [ { "cwd": "/home/user/project", "binaryPath": "/home/user/project/bin/program", "binaryArgs": [] } ] } Here is a example for C/C++ make project. Directory tree - bin -- main - src -- main.cpp -- module.cpp -- header.h - Makefile Makefile LINK = @echo linking $@ && g++ GCC = @echo compiling $@ && g++ GC = @echo compiling $@ && gcc AR = @echo generating static library $@ && ar crv FLAGS = -g -DDEBUG -W -Wall -fPIC GCCFLAGS = DEFINES = HEADER = -I./ LIBS = LINKFLAGS = BIN_PATH = bin SRC = $(wildcard src/*.cpp) INCLUDES = include TARGET = main OBJECT = $(SRC:%.cpp=%.o) .SUFFIXES: .cpp .c .cpp.o: $(GCC) -c $(HEADER) $(FLAGS) $(GCCFLAGS) -fpermissive -o $@ #html#lt; .c.o: $(GC) -c $(HEADER) $(FLAGS)…
Tag: fortran
1 Posts