Help regarding the linter while developing fpm

I have been using Modern Fortran Extension while working on Fortran Based projects in VSCode. But, whenever I try to write some code in some file that has already some code previously written and save that whole file gets reformatted to a new one. This adds some unnecessary additions and deletions to the PR. So, to avoid this I disable the extension, but it makes development a bit difficult as I cannot now access snippets and other shortcuts. So, If there is a generalised setting for linter for developing projects in Fortranlang, Please feel free to share.

This sounds like you have format on save enabled, which is a general VS Code, not from Modern Fortran. You probably want to disable that in your settings, or at least for Fortran. Alternatively you can just disable formatting in the Modern Fortran settings.

1 Like