Closed JamieJQuinn closed 5 months ago
Used pip-installed findent 4.3.1 to change all indentation from 3 spaces to 2 using the following fish command:
for f in (find . -name '*.f90'); findent -i2 -I2 < $f > $f.temp; mv $f.temp $f; end
I would add
--align_paren=1
to align multilines parenthesis) --refactor_end
to add subroutine names after end subroutine
--indent_select=4 --indent_case=2
to for case/select statementsIs there any setting for alignment for multi-line assignments and for multi-line variable declarations?
Is there any setting for alignment for multi-line assignments and for multi-line variable declarations?
no, unfortunately I haven't seen anything about that in the help page
Because the main limitation of findent is line continuation after =
, ::
and :
. I wrote a small script to handle only these. It is to be used on findent output.
findent < in.f90 | script/indent_continuation.py > out.f90
using fprettify instead see #81
Used pip-installed findent 4.3.1 to change all indentation from 3 spaces to 2 using the following fish command: