Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MODFLOW 6 SyntaxNew to Visual Studio Code? Get it now.
MODFLOW 6 Syntax

MODFLOW 6 Syntax

martclanor

|
76 installs
| (2) | Free
Provides rich language features for MODFLOW 6
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code MODFLOW 6 Syntax

CI GitHub package.json version GitHub License

Icon

[!NOTE] This project is currently in beta. Features and functionality may change, and there may be bugs. Feedback and contributions to help improve the project are welcome.

This VS Code extension provides rich language features for MODFLOW 6. It enhances the readability and editing experience for MF6 files by leveraging specifications directly from MF6 DFN files.

Features

Syntax highlighting

  • MF6 input files

demo-syntax-highlighting

  • MF6 output list files

demo-syntax-highlighting-lst

Document symbols

  • for integration with VS Code features such as outline view, go-to-symbol, breadcrumbs, sticky scroll, minimap, etc.

symbol-defn

Go-to-definition

  • Ctrl + click
  • Go To Definition keybinding (default: F12)

go-to-defn

Hover

  • for keyword description and block structure

hover

Others:

  • Block folding
  • Snippet (MF6 block)
  • Comment-toggling
  • Auto-closing quotes
  • Surrounding quotes

Commands

  • MF6 Syntax: Set language to MF6
    • useful if extension is not activated automatically (based on file extension)
  • MF6 Syntax: Go to parent file
    • opens the parent file of the current MF6 file, if it exists
    • for example:
      • if freyberg.dis file is active, it opens freyberg.nam
      • if freyberg.nam file is active, it opens mfsim.nam
      • if mfsim.nam file is active, no-op since it is the top-level file

Settings

  • mf6Syntax.maxFileSizeMB: Maximum file size (in MB) that can be opened through the go-to-definition feature or go-to-parent command (default: 50MB).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft