Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>OpenFOAM Language ClientNew to Visual Studio Code? Get it now.

OpenFOAM Language Client

Preview

Elwardi

|
233 installs
| (0) | Free
A Language Client for the OpenFOAM LSP server
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

A Language Client for OpenFOAM cases

A simple OpenFOAM language extension which adds (some) language support for OpenFOAM case dictionaries to Visual Studio Code.

Overview of supported features

Head to this slide for an overview of all supported features. Though, in Visual Studio Code you'll be using different commands to trigger them.

Configuration

This extension does not currently provide syntax highlighting support. We're waiting for VSCode to support Tree-Sitter. Mean while, you should continue to use Zhikui Guo's highlighting extension

Anyway, you'll need to correctly detect the file type for the language client to get triggered; For example, add the following to your Visual Studio Code settings to recognize OpenFOAM files (File->Preferences->Settings):

"files.associations": {
    "*Dict": "OpenFOAM",
    "*Properties": "OpenFOAM",
    "fvSchemes": "OpenFOAM",
    "fvSolution": "OpenFOAM",
    "**/constant/g": "OpenFOAM",
    "**/0/*": "OpenFOAM"
}

Want to help?

Please refer to this issue.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2022 Microsoft