VOOZH about

URL: https://marketplace.visualstudio.com/items?itemName=convergo-dev.calcdocs-vscode-extension

โ‡ฑ CalcDocs - C/C++ Constants & Formula Evaluator - Visual Studio Marketplace


Skip to content
๐Ÿ‘ Image
Sign in
Visual Studio Code>Programming Languages>CalcDocs - C/C++ Constants & Formula EvaluatorNew to Visual Studio Code? Get it now.
๐Ÿ‘ CalcDocs - C/C++ Constants & Formula Evaluator

CalcDocs - C/C++ Constants & Formula Evaluator

Excel for firmware โ€” instantly evaluate C/C++ macros, constants, and YAML formulas with real computed values inside VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

๐Ÿงฎ CalcDocs โ€” Instantly See What Your Firmware REALLY Computes [0.3.4-prerelease]

Reveal hidden firmware values directly inside VS Code.
Inline calculations โ€ข Macro value expansion โ€ข Engineering formulas โ€ข Unit conversions

Live engineering knowledge embedded directly into firmware.
Stop rebuilding firmware formulas in Excel โžก๏ธ Reuse the originals directly.


๐Ÿ‘ Version
๐Ÿ‘ Download
๐Ÿ‘ License

Firmware logic is often invisible.

Values are buried behind:

  • chained macros
  • scaling constants
  • unit conversions
  • spreadsheet calculations
  • scattered documentation

๐Ÿ‘‰ CalcDocs makes those values visible instantly.


โšก What CalcDocs does

CalcDocs transforms VS Code into a live firmware calculation explorer.

Instead of manually expanding macros, opening Excel files, or mentally resolving formulas:

โœ… Hover a value
โœ… See the final computed result
โœ… Understand firmware logic instantly

No build. No flashing. No debugger.


โšก 5-second demo


1๏ธโƒฃ Coding Evaluator

Write this:

#define RPM 1000
#define SPEED (RPM * 0.10472)

CalcDocs instantly shows:

#define SPEED (RPM * 0.10472) โ† 104.72

โœ… Real-time evaluation
โœ… Inline resolved values
โœ… No manual calculations


2๏ธโƒฃ Realtime Engineering Notes

Write this directly inside your firmware comments:

// @rpm = 3000 rpm
// = @rpm -> rad/s
// = 13 N * 1 m * @rpm -> W

CalcDocs evaluates everything live:

// @rpm = 3000 rpm
// = @rpm -> rad/s <- 314.1592653589793 rad/s
// = 13 N * 1 m * @rpm -> W <- 4084.0704496667313 W
  • Realtime calculations directly in comments
  • Unit conversion (rpm -> rad/s, atm -> Pa, etc.)
  • Keep formulas near the actual firmware logic
  • Eliminate scattered Excel and text notes

Keep engineering calculations close to the firmware logic instead of:

  • Excel sheets
  • random .txt files
  • disconnected documentation

Your firmware becomes self-documented.


3๏ธโƒฃ Interactive Formula Explorer

Explore firmware formulas as a live dependency graph directly inside VS Code.

๐Ÿ‘ Macro Chain Revelation in code

CalcDocs keeps formulas and firmware intrinsically synchronized.

The same engineering logic can now:

โœ… live next to production code
โœ… be evaluated in real time
โœ… be reused during debugging
โœ… propagate through dependencies automatically
โœ… stay permanently aligned with the firmware implementation
โœ… can also propagate tolerances (e.g. tol, min/max) through your YAML formula dependency graph to compute final min/max ranges.

No duplicated engineering logic.
No spreadsheet drift.
No parallel maintenance.


4๏ธโƒฃ Macro Chain Revelation

File Preview
Inside C code ๐Ÿ‘ Macro Chain Revelation in code
Inside formulas*.yaml ๐Ÿ‘ Macro Chain Revelation in formulas

๐Ÿ‘€ Firmware Blindness โ€” Before vs After

Before After
๐Ÿ‘ Before
๐Ÿ‘ After

โšก Quick Actions & Header Generation

Header generation
๐Ÿ‘ Macro and constant generation header output
Quick menu
๐Ÿ‘ Quick menu

๐Ÿ”ฅ Why this matters

Firmware development is rarely difficult because of syntax.

It becomes difficult because:

  • values are hidden
  • formulas are fragmented
  • scaling is implicit
  • engineering decisions live outside the codebase

Understanding a single value may require:

  • opening multiple headers
  • expanding macro chains
  • checking documentation
  • validating unit conversions
  • searching old spreadsheets

Most firmware projects suffer from:

  • duplicated formulas
  • stale spreadsheets
  • undocumented scaling
  • hidden assumptions

These issues create real bugs.


CalcDocs removes that friction.

Instead of navigating half the project:

๐Ÿ‘‰ you immediately see what the firmware computes.


๐Ÿ”— YAML โ†” C Synchronization

Define formulas once:

power:
 formula: vin * current
 unit: W

Use them everywhere.

CalcDocs:

โœ… evaluates formulas
โœ… syncs YAML with C/C++
โœ… prevents formula drift
โœ… shows results inline


โš–๏ธ Built-In Validation

Detect issues early:

  • Unit mismatches
  • Overflow risks
  • Invalid conversions
  • YAML/C inconsistencies

CalcDocs is designed for real embedded firmware workflows.


๐Ÿ‘€ What it looks like in real code

#define VIN 24
#define CURRENT 2
#define POWER (VIN * CURRENT)

CalcDocs shows:

#define POWER (VIN * CURRENT) โ† 48W

๐Ÿ’ก Real use cases

๐Ÿ” Understand code instantly

No more jumping across headers to resolve macros

โš ๏ธ Catch bugs early

See wrong values before flashing your MCU

๐Ÿ”„ Eliminate Excel drift

Formulas stay aligned with firmware

๐Ÿงช Debug faster

Know values before runtime


๐Ÿ“š Create Self-Documenting Firmware

Engineering decisions stay inside the source code.


โ— What CalcDocs Is NOT

CalcDocs is intentionally focused.

It is:

โŒ NOT a compiler
โŒ NOT a debugger
โŒ NOT a full static analyzer


CalcDocs focuses on one thing:

making firmware numeric logic visible.


โš™๏ธ Recommended setup (optional)

CalcDocs works standalone.

For best results, combine it with:

  • clangd (recommended)
  • ms-vscode.cpptools
  • CMake Tools

CalcDocs integrates without conflicts.


CalcDocs supports engineering prefixes automatically:

mV, uV, nV, kV, MHz, mA, etc.


โค๏ธ Support

If CalcDocs saves you time:


๐Ÿ“š Documentation

Full documentation available on GitHub:


๐Ÿง  Final thought

Spreadsheets hide logic. Code hides values.

CalcDocs reveals both.