Should I indent the codes below contains?

I hope most readers will agree this is matter of style with Fortran. Were I to “code in anger,” I would

  1. align CONTAINS with (SUB)MODULE,
  2. indent the body of all the major constructs including ASSOCIATE, BLOCK, IF, etc. and also FUNCTION and SUBROUTINE
  3. use 3 spaces for indentation; two spaces appears too low but four spaces is too wide for me,
  4. Have a space between END, ELSE, etc. and following clause - END IF, ELSE IF, END ASSOCIATE, etc.
  5. Limit uppercase letters to named constants,

To each their own!!

What I am waiting for (or planning to look into options for) is a “View” mode in IDEs where one can define/pick a style and Fortran code can then simply be viewed in that style regardless of how it is in the actual source content.