Cal is a lightweight, safe inline calculator designed to act as a scratchpad directly inside your code. It provides a simple way to perform math calculations within your files without leaving your editor.
Unlike conventional calculators that blindly evaluate math across your document, Cal is explicitly triggered only when you wrap your expressions in cal(...). It safely ignores your everyday code operations like int x = 10 + 3;.
Features
Smart Replacement: Typing cal(10 + 3) and triggering the command replaces it instantly with 10 + 3 = 13.
Multiple Ways to Trigger:
Using the handy Shift+Enter keyboard shortcut.
Clicking the quick-access ⚡ (Zap/Lightning) icon in the top-right corner of your editor tab.
With your cursor over the calculation (or highlighting the calculations), hit Shift+Enter or click the execute icon in the top right menu of the editor.
The wrapper is removed and your calculation is evaluated right in place!
There are currently no configurable settings, but it's designed to just work right out of the box!
Known Issues
None yet.
Release Notes
0.0.1
Initial release of Cal — Inline Calculator. Includes math parsing, multi-base number evaluation, keyboard shortcuts (Shift+Enter), and editor-title menu icon integration.