A very basic extension to add a calculator to vs code.
Features
This extension evaluates mathematic expressions using the mathjs module. The following features are available:
Basic calculation (e.g. (12/4)^5 - 12)
Conversion of units (e.g. 6 feet to m)
Tip: You can also save frequently used values to a variable (e.g. amount = 42). You can use the amount variable in all following expressions. Use the Reset command to clear all saved values.
Commands
calculator.evaluate: Opens the Calculator
calculator.reset: Resets the Calculator
Extension Keybindings
Ctrl+Alt+E: Open Calculator
Ctrl+Alt+C: Reset Calculator
Extension Settings
calculator.saveToClipboard: enable/disable saving result of calculation to clipboard
calculator.disableResultNotifications: enable/disable showing a notification with the result
Known Issues
No known issues yet :)
Enjoy using my extension! Constructive feedback is welcome.