[ANN] IntelliCalc 1.0 Follow
A small scientific calculator integrated in IntelliJ.
Use it as a normal simple calculator (with advanced functions) or evaluate expressions directly from your editor. To evaluate an expression in the editor, simply select the expression and select Evaluate in the editor popup menu or simple press CTRL-E, CTRL-C.
The plugin knows math functions (add, subtract, sin, cos, acotan, ...), logical operators (||, !=, ...) and some special functions:
will set a variable so it can be used in a calculation. Ex. set(x=2) 2*x returns 4
Clears a stored variable. Ex. clear(x) will clear the variable x. Note that any calculation using x will fail until a new x has been set.
Note that the C button simply clears the textfield, while the CE button clears both the textfield and all stored values.
Awaiting suggestions to improve the calculator.
Please sign in to leave a comment.
It would be really neat if you could provide some link to where get this plugin. Or at least a note that it is (if it's really so) available through Settings/Plugins in IntelliJ IDEA.
Sorry about that, for me it's so obvious to make my plugins available through settings/plugins that i forget to mention it.
So, to fix that: Plugin is available through Settings/Plugins in IntelliJ IDEA, or it can be downloaded on http://plugins.intellij.net/plugin/?id=1004
this plugin looks useful. Some suggestions:
1. Add buttons for all other functions and operators (or at least the most common ones)
2. The tool window should be opened when selecting "Evaluate" from the context menu. Now it looks like nothing is happening. Now you have to open the tool window yourself to see that the result of the evaluation.
CTRL-e, CTRL-C is a bad idea for a shortcut. It kills the CTRL-E shortcut for recent files. Unfortunately the shortcut cannot be changed in the keymap. So I had to uninstall the plugin.
thanks for the feedback.
About 1, this was actually in the planning. It's not in the first version because I wanted to throw the plugin in the open as soon as possible so I would get feedback as soon as possible. Just wanted to know if there was an audience for the plugin.
About 2, I didn't know that. Forgot to test it. Will be fixed in the next version.
I never used CTRL-E myself, so I didn't actually know there was a conflict there. I'll remove this shortcut and look for another if available. If anyone has some suggestions I like to hear about it.
I decided to go for alt F8. This is in sync with the "Evaluate Expression" funtion of IntelliJ IDEA while debugging a program. Adding the alt F8 for the evaluate action of IntelliCalc does not break this.