Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>mrgsolve DSLNew to Visual Studio Code? Get it now.
mrgsolve DSL

mrgsolve DSL

Kyle T. Baron

|
1 install
| (0) | Free
Syntax highlighting for mrgsolve pharmacokinetic/pharmacodynamic model files (.mod, .mrg)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mrgsolve DSL — VSCode Extension

Syntax highlighting for mrgsolve pharmacokinetic/pharmacodynamic model files.

Features

  • Block headers: $PARAM, $ODE, $MAIN, $TABLE, $OMEGA, $SIGMA, etc. (and [block] form)
  • Block annotations: @annotated, @block, @name, @labels, @object, etc.
  • @annotated blocks: NAME : value : description (unit) format fully highlighted
  • Parameter blocks: parameter names highlighted in $PARAM, $INIT, $FIXED
  • Matrix blocks: label and name annotations highlighted in $OMEGA, $SIGMA, $THETA
  • $CAPTURE rename syntax: alias = source highlighted
  • mrgsolve macros: ETA(n), EPS(n), THETA(n), A(n), DADT(n)
  • ODE syntax: dxdt_CMT, F_CMT, ALAG_CMT, R_CMT, D_CMT
  • System variables: TIME, ID, AMT, EVID, NEWIND, self, etc.
  • self methods: self.push(), self.mevent(), etc.
  • mrg:: namespace: mrg::rvar, mrg::rnorm, etc.
  • $PLUGIN values: Rcpp, RcppArmadillo, mrgx, nm-vars, tad, etc.
  • capture keyword
  • **C++ keywords, types

File Types

Files with the .mrgsolve or .mrg extension are automatically detected as mrgsolve.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft