After you have installed your compiler, you will need a text editor to write your code. Any text editor can serve this purpose, even the built-in Notepad on Windows. However, there are specialized editors for programming languages. These editors come with many useful features like auto-complete, syntax-highlighting, auto-indentation, brace-matching, and many more, with few of them pre-installed and the majority in form of external plug-ins. This means that by default these features are not installed in the editor, but it’s up to you to search for them through a package manager and install and configure them manually.
Here’s a list of the most popular text editors that support Fortran syntax, in alphabetical order:
A comprehensive list with more choices is provided in fortranwiki.org.
Things to consider before choosing a text editor:
With the editor opened, at the main UI, at the buttoned-column on the left, there is a four-square-shaped icon to open the Marketplace for extensions. The following extensions are suggested for Fortran developement:
Note: Both Modern Fortran and Fortran Breakpoint Support require ms-vscode.cpptools, for that you will also need to install the C/C++ by Microsoft extension.
The following are not essential but more advanced users might find useful:
A well structured gist that provides instructions on how to set up SublimeText for Fortran developement is given here.
Atom’s configuration process is similar to VSCode one. At the main interface, if the Welcome Guide page is already opened for you, just click the Install a Package option, otherwise you can find the same option through the navigation bar at the top by clicking Packages. In doing so a new page under Settings opens where you can just start typing the package you want to install.
One package that includes many Fortran features is IDE-FORTRAN by hansec. It needs the following packages to be installed:
Additionally just like in VSCode it needs Python and Fortran Language Server to be installed.
For version control a very popular package is Git-Plus by akonwi.