Okay, that’s fine. So firstly, for changing settings, including those of any extensions in VS Code you should read this Visual Studio Code User and Workspace Settings
It covers all you need to know about the settings User Interface and the equivalent but less user friendly settings.json
file.
Now in terms of gettings the Modern Fortran extension to work you only need a couple of things:
- VS Code version 1.63 or higher
- and
pip
to installfortls
,findent
and/orfprettify
The experience for most users tends to be plug-n-play, but I understand that there are numerous system configurations so our default options might not cover your specific setup. To get fortls
to work either:
- need to find where pip installs its packages and add it to your PATH variable. This is normally done automatically but from the looks of it in your system it does not. e.g. for Unix
export PATH=$HOME/.local/bin:$PATH
, restart vscode once you do that - or find where pip installs its packages and point VS Code to it in the settings, see screenshot
In general, to install fortls in a terminal do
python3 -m pip install fortls --upgrade
Then follow either 1. or 2. to set it up in VS Code.