🌐 如果你正在寻找一个能让Fortran编程变得更简单的工具,那么Modern Fortran插件绝对值得一试!这个插件为VS Code(一个流行的集成开发环境)增添了强大的Fortran编程支持。🔍 安装了Modern Fortran插件后,你可以像使用Python扩展一样,轻松实现程序之间的跳转。只需按下Ctrl+左键单击,就能快速跳转到函数定义。而且,当你...
首先按下“Ctrl+Shift+X”组合键打开VS Code的插件管理界面,在搜索栏中键入Modern Fortran搜索并安装该插件。在安装完成后,我们再次在VS Code中打开前面创建的名为hello.f90的Fortran示例源文件,可以看到所有代码均已实现高亮显示,在VS Code的终端中键入如下命令以编译并运行该程序: gfortran -o hello hello.f90 .\...
2. Visual Studio Code 如果想要用VS Code来给自己添加一些挑战性,可以分别安装oneAPI和VS Code。 打开VS Code,添加扩展“Modern Fortran”和“Extension Pack for Intel oneAPI Toolkits”。这是一个组合套件,在其中的“Environment Configurator for Intel® oneAPI Toolkits”,点击扩展设置,修改选项“ONEAPI_ROOT”,...
安装VS Code后,在左侧搜索栏中下载安装:1.汉化包;2.Modern Fortran;3.Fortran ItelliSense,安装好之后只有高亮显示功能,还没有快速跳转功能,需下载安装fortran-language-server,可参考教程: VS Code fortran-language-serve安装 | 码农家园 (codenong.com) 在这之前,需安装Python,然后打开命令提示符窗口(win+R->...
首先,在VS code里点击设置→扩展→Run Code configuration→Executor Map,选择在settings.json中编辑,将FortranFreeForm和fortran-modern两种风格下的gfortran后面的$fileName改成*.f95或者*.f90即可。改完后如下所示: "FortranFreeForm": "cd $dir && gfortran *.f95 -o $fileNameWithoutExt && $dir$fileName...
安装几个插件:fortran (Xavier Hahn);Fortran Breakpoint Support (ekibun);My Fortran Setting (深雨露);Modern Fortran (The Fortran Programming Language);FORTRAN IntelliSense (Chris Hansen)。如果没装fortran language server可以disable FORTRAN IntelliSense。
"fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir...
Now, moving to VSCode, you may be familiar with this: Modern Fortran - Visual Studio Marketplace. But now, whatever creature comfort is there to be attained on Fortran programming will be based on such plug-ins developed by FOSS volunteers: it may work today, not tomorrow; it may off...
"FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt ...
I couldn't disagree with this response more. Our finite element code would not have been possible to write in Fortran. In fact, it started 15 years ago as a mix of plain C and Fortran (the latter being for the numerically intensive parts of the method), and it gradually moved to pure...