Coding Phantom in VSCode or Cursor AI

In VSCode or Cursor there are several helpful settings when editing Phantom source files. After installing a modern Fortran extension, to enforce the indentation conventions in Phantom you should use findent as in the indentation engine: and pass it the same options as used in the bots script:

findent flags in VSCode

and yes, you do have to type each flag in a separate box. Then it is useful to select the “format on save” option in Settings->Text Editor->Formatting:

findent flags in VSCode

Thanks to Yann Bernard for getting this working!