/lammps_vscode

VSCODE extension for language support of LAMMPS scripts

Primary LanguageTypeScriptGNU General Public License v2.0GPL-2.0

Lammps language extension for vscode README

vsm-version Visual Studio Marketplace Last Updated vsm-installs SYNC GitHub Plant Tree Gitter

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

  • 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

Embedded Offline Documentation

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

Autocompletion

Autocompletion

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

Hover information

Hover

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

Task Provider

Tasks

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

Linting (in progress)

Lint

  • 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 (beta feature)

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.