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
- Clone or download this repository
- Open the folder in VS Code
- Run in terminal:
npm install