VS Code Extensions
Math Simplifier

Math Simplifier

by rasmusgo

Simplify mathematical expressions in VS Code with algebraic rules, constant evaluation, trig functions, and detailed simplification history.

Downloads

27

Rating

— (0)

Version

1.2.0

Last updated

Apr 05, 2026

A VS Code extension that parses the current selection as a mathematical expression and performs simplifications by evaluating constant sub-expressions and applying algebraic rules.

Features

  • Quick Simplify — Replace selection with simplified expression instantly (Ctrl+Shift+M)
  • Simplify with History — Shows detailed step-by-step simplification process in a side panel (Ctrl+Shift+Alt+M)
    • Granular phases: Original → Constant Evaluation → Core Simplification → Full Algebraic Simplification → Final Result
  • Powered by mathjs — supports a wide range of expressions, variables, trig functions, etc.

Supported Operations

  • Constant folding (2 + 3 * 4 → 14)
  • Combining like terms (3x + 5x → 8x)
  • Basic algebraic identities
  • Trigonometric and constant evaluation (sin(π/2) → 1)
  • Parentheses handling and pretty printing

Commands

Command Keyboard Shortcut Description
Simplify Math Expression Ctrl+Shift+M Simplify in place (no history)
Simplify Math Expression (with History) Ctrl+Shift+Alt+M Show granular simplification steps

Installation & Development

Prerequisites

  • Node.js (v18 or higher)
  • Visual Studio Code

Setup

  1. Clone or download this repository
  2. Open the folder in VS Code
  3. Run in terminal:
    npm install