1 Star 0 Fork 0

shiguang / vscode-fortran-ls

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Fortran IntelliSense package

vs marketplace downloads rating

Fortran IntelliSense (IDE functionality) support for VSCode, powered by the Fortran Language Server.

Features

  • Document outline
  • Completion
  • Signature help
  • GoTo/Peek definition
  • GoTo implementation
  • Hover
  • Find/Peek references
  • Project-wide symbol search
  • Symbol renaming
  • Documentation parsing (Doxygen and FORD styles)
  • Diagnostics
    • Multiple definitions with the same variable name
    • Variable definition masks definition from parent scope
    • Missing subroutine/function arguments
    • Unknown user-defined type used in "TYPE"/"CLASS" definition (only if visible in project)
    • Unclosed blocks/scopes
    • Invalid scope nesting
    • Unknown modules in "USE" statement
    • Unimplemented deferred type-bound procedures
    • Use of unimported variables/objects in interface blocks
    • Statement placement errors ("CONTAINS", "IMPLICIT", "IMPORT")
  • Code actions [Experimental, must be enabled in settings]
    • Generate type-bound procedures and implementation templates for deferred procedures

See Fortran Language Server for examples and more details. There is also a companion package for the Atom text editor.

Examples:

Autocomplete in Fortran IntelliSense

Hover definition in Fortran IntelliSense

Peek definition in Fortran IntelliSense

Requirements

This package requires the following extensions to be installed:

Additionally, you must have Python and the Fortran Language Server installed on your system. Be sure to periodically update the underlying language server to stay up to date with new features and fixes.

This package has been tested and should work on :apple: macOS (OS X), :penguin: Linux and Windows.

Configuration

Note: When setting an explicit language server executable path on Windows backslashes must be escaped (ex. C:\\path\\to\\fortls.exe).

Due to Fortran's syntax it is recommended that you disable the Enter key for suggestion confirmation. This can be done selectively in fortran files by adding the snippet below to your settings.json file.

"[fortran]": {
    "editor.acceptSuggestionOnEnter": "off"
},
"[fortran_fixed-form]": {
    "editor.acceptSuggestionOnEnter": "off"
},
"[FortranFreeForm]": {
    "editor.acceptSuggestionOnEnter": "off"
}

See the fortran-language-server README for information on project specific configuration settings.

Bug reports

Note that most bugs observed with this package are actually related to the upstream fortran-language-server. Unless you believe the error you observe is directly related to Visual Studio Code please submit issues to the upstream repo. When filing bugs please provide example code to reproduce the observed issue if possible.

License

MIT License. See the license for more details.

Support

If you really like Fortran IntelliSense or the underlying language server you can buy me a :coffee: or a :beer: to say thanks.

Copyright (c) 2017-2019 Chris Hansen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
TypeScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/fzw0910/vscode-fortran-ls.git
git@gitee.com:fzw0910/vscode-fortran-ls.git
fzw0910
vscode-fortran-ls
vscode-fortran-ls
master

搜索帮助