LAMMPS Language Extension for VS Code
April 7, 2026 · View on GitHub
This extension for Visual Studio Code provides language support for LAMMPS (Molecular dynamics Software) Scripts. This package is being synchronised with the Lammps documentation through a continuous integration pipeline on a monthly schedule to keep the keyword lists and embedded command documentations up to date.
Features
Syntax/Keyword Highlighting

- Syntax Highlighting for Keywords, Variables and Data Types
- Folding possible between Markers #[ and #]
- Recognizes .lmp, .lmps and .lammps file extensions and files beginning with "in."
Embedded Offline Documentation

- Right click on a command allows to open a documentation page inside vscode
Autocompletion

- Completion suggestions with corresponding information are displayed
- Functionality can be turned off
- Different information-display options possible
Hover information

- Information about Lammps commands are displayed when hovering over them
- Appearance of the hover panel is customisable
Task Provider

- Different preconfigured run tasks can be executed
- Path to Lammps executable must be set in the extension's settings
- Tasks of
"type": "lmps"can also be configured manually in a tasks.json file
Linting

- Set of functions that points out problems before runtime
- So far implemented:
- checking for files and paths on read- and write commands
- checking for unbalanced/non-closed brackets
- checking for exceeding maximum # of group definitions
- To be extended in the future
Simulation Dashboard

- Shows system information like CPU,GPU(Nvidia only) and memory usage
- interactive 3D Visualisation of atomic dumps
- interactive plots of lammps log file data
- automatically updating plots for easy live observation of simulation status
Treeware License
This package is Treeware. If you find this extension useful, then we ask that you 🌱 buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.