Modern Fortran language support for VSCode
This extension provides support for the Fortran programming language. It includes syntax highlighting, code snippets and a linting based on
gfortran. You can download the Visual Studio Code editor from here.
- Syntax highlighting
- Code Snippets
- Documentation on hover for intrinsic functions
- Code linting based on
gfortran to show errors wiggles in your code
- Code autocompletion (beta)
- Symbols provider
You can control the include paths to be used by the linter with the
By default the
gfortran executable is assumed to be found in the path. In order to use a different one or if it can't be found in the path you can point the extension to use a custom one with the
If you want to pass extra options to the
gfortran executable or override the default one, you can use the setting
fortran.linterExtraArgs. By default
-Wall is the only option.
You can configure what kind of symbols will appear in the symbol list by using
"fortran.symbols": [ "function", "subroutine"]
The available options are
- "module" (not supported yet)
- "program" (not supported yet)
and by default only functions and subroutines are shown
You can also configure the case for fortran intrinsics auto-complete by using
"fortran.preferredCase": "lowercase" | "uppercase"
This is a list of some of the snippets included, if you like to include additional snippets please let me know and I will add them.