Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29256 Discussions

*.f to *.f90 without adding a new item

Stuart_M_
Beginner
420 Views
Greetings,

I have a project that contains some fixed-form files and some free-form files. I prefer to use free-form so I'd like to know if there is a way to easily change the file format.

I read in the discussion on the implications of file extensions that the compiler automatically treats files with the .f90 extension as free-from, so I thought renaming the .f files to .f90 from within VS and rebuilding might do the trick. It doesn't.

I know I can remove the .f files from the project, add new .f90 items and simply copy the code but this is a pretty tedious way of doing things when one has a lot of files. Is there a work-around?

Thanks
0 Kudos
1 Reply
Stuart_M_
Beginner
420 Views
Resolved - I simply needed to close VS and reopen the solution for it to refresh the file extensions
0 Kudos
Reply