---
name: "fortls"
section: "1"
platform: "linux"
package: "fortran-language-server"
version: "3.2.2+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/fortls"
---

# fortls(1)

Fortran Language Server for the Language Server Protocol

## NAME

fortls - Fortran Language Server for the Language Server Protocol

## DESCRIPTION

usage: fortls \[options\] \[debug options\]

fortls - Fortran Language Server

### options:

- **-h**, **--help**

  show this help message and exit

- **-v**, **--version**

  Print server version number and exit

- **-c**, **--config** CONFIG

  Configuration options file (default file name: .fortlsrc, other default supported names: .fortls.json, .fortls)

- **-n**, **--nthreads** INTEGER

  Number of threads to use during workspace initialization (default: 4)

- **--notify\_init**

  Send notification message when workspace initialization is complete

- **--incremental\_sync**

  Use incremental document synchronization (beta)

- **--recursion\_limit** INTEGER

  Set the maximum recursion depth for the parser (default: 1000)

- **--sort\_keywords**

  Display variable keywords information, function/subroutine definitions, etc. in a consistent (sorted) manner default: no sorting, display code as is)

- **--disable\_autoupdate**

  fortls automatically checks PyPi for newer version and installs them.Use this option to disable the autoupdate feature.

- **--preserve\_keyword\_order**

  DEPRECATED, this is now the default. To sort use sort\_keywords

- **--debug\_log**

  Generate debug log in project root folder

- **--debug\_help**

  Display options for debugging fortls

### Sources file parsing options:

- **--source\_dirs** \[DIRS ...\]

  Folders containing source files (default: set())

- **--incl\_suffixes** \[SUFFIXES ...\]

  Consider additional file extensions to the default (default: .F, .F77, .F90, .F95, .F03, .F08, .FOR, .FPP (lower & upper casing))

- **--excl\_suffixes** \[SUFFIXES ...\]

  Source file extensions to be excluded (default: set())

- **--excl\_paths** \[DIRS ...\]

  Folders to exclude from parsing

### Autocomplete options:

- **--autocomplete\_no\_prefix**

  Do not filter autocomplete results by variable prefix

- **--autocomplete\_no\_snippets**

  Do not use snippets with place holders in autocomplete results

- **--autocomplete\_name\_only**

  Complete only the name of procedures and not the parameters

- **--lowercase\_intrinsics**

  Use lowercase for intrinsics and keywords in autocomplete requests

- **--use\_signature\_help**

  Use signature help instead of subroutine/function snippets. This effectively sets **--autocomplete\_no\_snippets**

### Hover options:

- **--variable\_hover**

  DEPRECATED: This option is always on. Show hover information for variables

- **--hover\_signature**

  Show signature information in hover for arguments

- **--hover\_language** HOVER\_LANGUAGE

  Language used for responses to hover requests a VSCode language id (default: fortran90)

### Diagnostic options (error swigles):

- **--max\_line\_length** INTEGER

  Maximum line length (default: **-1**)

- **--max\_comment\_line\_length** INTEGER

  Maximum comment line length (default: **-1**)

- **--disable\_diagnostics**

  Disable diagnostics

### Preprocessor options:

- **--pp\_suffixes** \[SUFFIXES ...\]

  File extensions to be parsed ONLY for preprocessor commands (default: all uppercase source file suffixes)

- **--include\_dirs** \[DIRS ...\]

  Folders containing preprocessor files with extensions PP\_SUFFIXES.

- **--pp\_defs** JSON

  A dictionary with additional preprocessor definitions. Preprocessor definitions are normally included via INCLUDE\_DIRS

### Symbols options:

- **--symbol\_skip\_mem**

  Do not include type members in document symbol results

### CodeActions options \[limited\]:

- **--enable\_code\_actions**

  Enable experimental code actions (default: false)

All options starting with '--' can also be set in a configuration file, by default named '.fortlsrc', '.fortls.json' or '.fortls' (other names/paths can specified via **-c** or **--config**). For more details see our documentation: https://fortls.fortran-lang.org/options.html#available-options
