qtcreator-fortran
qtcreator-fortran copied to clipboard
Templates for using Qt Creator in Fortran development.
Templates for using Qt Creator and Fortran
This project adds support for Fortran projects and source files in Qt Creator as well as syntax-highlighting.
Installation
Linux/macOS
Go to the user configuration directory of Qt Creator
cd ~/.config/QtProject/qtcreator
Download this archive:
wget https://github.com/jonaslindemann/qtcreator-fortran/archive/master.zip
Unzip the archive:
unzip master.zip
mv qtcreator-fortran-master/* .
Restart Qt Creator.
Windows
Open the %appdata%\QtProject\qtcreator folder in explorer.
Download this archive into the above folder:
wget https://github.com/jonaslindemann/qtcreator-fortran/archive/master.zip
Open the zip-file and go into the qtcreator-fortran-master folder in the zip file. Select all files and press Ctrl+C. Paste the files in the %appdata%\QtProject\qtcreator folder.
Usage
When installed Qt Creator can create a CMake based Fortran project as well as create Fortran source files and modules.
Create a Fortran project
- Select File/New File or Project...
- Select Non-Qt Project
- Select Plain Fortran Application
- Click Choose...
Follow the wizard for the rest of the setup.
Adding a Fortran source code
- Select File/New File or Project...
- Select Fortran from Files and Classes.
- Select Fortran Source File.
- Click Choose...
Follow the wizard for the rest of the setup.
Adding a Fortran module
- Select File/New File or Project...
- Select Fortran from Files and Classes.
- Select Fortran Nodule File.
- Click Choose...
Follow the wizard for the rest of the setup.