After my earlier thread here, I’ve migrated from Geany to VS Code, an editor I was already very familiar with, as I’m still not ready to switch to Emacs. It’s been going well, but I have one lingering question.
A few tutorials about Fortran and VS code are the ones below:
The first one suggests using Code Runner and C/C++ Makefile Project in order to compile and run Fortran code, while the second one builds the program from VS Code’s tasks. As I was following the first tutorial, I tried to use Code Runner on a few Fortran source files without a makefile, and it simply worked up-front. My guess would be that either:
- Code Runner never needed makefiles to begin with (I couldn’t verify that from the project’s Github page, as Fortran support was only recently added) or;
- Code Runner received a recent update which made makefiles unecessary or;
- I’m doing something wrong and I might have problems in the future if I don’t use makefiles.
For the record, all of the Fortran source files I’ve tested with Code Runner weren’t compiled beforehand: the extension compiled them automatically.
Help would be greatly appreciated in order to verify this. Code Runner seems to be a legitimate extension, so I’m hoping I can stay with it for now; either way, learning how to use VS Code tasks will be helpful, and I plan on doing that too.