fortls is a tool known as a language server that interfaces with your code editor
(VS Code, Vim, etc.) to provide features like code completion, code navigation, hover messages, and many more.
The project is available for download through the PyPi and Anaconda package managers
pip install fortls
For more information see pypi/fortls
conda install -c conda-forge fortls
For more installation instructions, see conda-forge/fortls.
brew install fortls
For more installation instructions, see brew/fortls.
Alternatively, one can install the development version from GitHub via
pip install --user --upgrade git+git://github.com/fortran-lang/fortls
It is NOT possible having
simultaneously installed, since they use the same executable name. If you are having trouble
fortls to work try uninstalling
fortran-language-server and reinstalling
To make full use of
fortls in your workflow you need to
integrate it into your code editor, see: Editor Integration
(Optional) configure any additional settings to
fortls, see: Configuration options
Depending on the code editor used, different steps will have to be followed to integrate
Luckily, we support numerous code editors and have detailed instructions in the
Editor Integration section.
The Language Server by default is configured with reasonable settings however, depending on the project additional settings might need to be configured, such as source file paths, or additional preprocessor definitions.
Instructions on how to do this and much more can be found in the Configuration options section.