[ANN] Smart Introduce Plugin
This is the successor of the Smart Introduce Variable Plugin and works now
for Introduce Variable, Constant, Field.
It also has the ability to let the user select the actual expressions to refactor.
More info and download here: http://www.intellij.org/twiki/bin/view/Main/SmartIntroducePlugin
Sascha
请先登录再写评论。
Cool. Could you provide a couple of sentences about the "I feel lucky"
checkbox and the table below?
Thanks!
"Sascha Weinreuter" <sascha.weinreuter@cit.de> wrote in message
news:bfu4gq$car$1@is.intellij.net...
>
refactor.
>
http://www.intellij.org/twiki/bin/view/Main/SmartIntroducePlugin
>
>
>
>
Thanks.
Haha, I knew that was coming... my joy writing documentation is a bit limited though... I'll do my best ;)
- "I'm feeling lucky": Like Google does. If this option is checked, the plugin will never show a list of possible expressions, but it will use the highest rated one.
- In the rating table you can fine tune how different types of expressions are ranked. That's not only useful if the above option is checked but it also defines how a list of possible expressions is sorted.
Literal, Simple Reference, Assignment, Variable Initializer, boolean comparisions: Things that one usually won't want to turn into a variable are rated low.
Object creation, results of type casts and the expression at the cursor are more likely to go into a variable and are rated high.
The default values are only empirically determined for my personal preferences and may differ for others. That's why I made that configurable. (And because I wanted to play with the UI designer :)
If you find other values to be more useful, feel free to add them on the plugin's wiki page.
Hope that helps,
Sascha
Thanks! Now, didn't you enjoy that? :)
"Sascha Weinreuter" <no_mail@jetbrains.com> wrote in message
news:9386672.1059410555732.JavaMail.itn@is.intellij.net...
>
limited though... I'll do my best ;)
>
plugin will never show a list of possible expressions, but it will use the
highest rated one.
>
are ranked. That's not only useful if the above option is checked but it
also defines how a list of possible expressions is sorted.
>
comparisions: Things that one usually won't want to turn into a variable are
rated low.
>
cursor are more likely to go into a variable and are rated high.
>
preferences and may differ for others. That's why I made that configurable.
(And because I wanted to play with the UI designer :)
>
plugin's wiki page.
>
>
>
>