New Refactoring: Create inner class from usage

I am looking for example how to do this. I can't find it from help documents. How can I do this.

6 comments
Comment actions Permalink

mh...sounds like magic. can idea really do this? what is it?

0
Comment actions Permalink

Have you already taken a look at the Summary Release Notes? Maybe they can
give you a hint. Unfortunately, they were dropped with build 7274 - maybe
because I told I liked them very much?

0
Comment actions Permalink

new Foo();

Foo is red as it is not defined.

Place cursor on it and bring up intention actions.

Select "Create inner class 'Foo'".

Voila!

N.

Rambabu Talasila wrote:

I am looking for example how to do this. I can't find it from help documents. How can I do this.

0
Comment actions Permalink

I like them too, and I miss them too! Especially the screenshots, but also the new shortcuts, tips and tricks... (this is how I learned about CTRLSHIFTENTER, to give an example!)

0
Comment actions Permalink

Hello Rambabu,

I am looking for example how to do this. I can't find it from help
documents. How can I do this.


Just type an unresolved class name and press Alt-Enter.

For example:
class A {
public void test() {
B b = new B(); // press Alt-Enter on the red B reference
}
}

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hello Tom,

Have you already taken a look at the Summary Release Notes? Maybe
they can give you a hint. Unfortunately, they were dropped with build
7274 - maybe because I told I liked them very much?


They weren't dropped. We're in feature freeze now, so we have nothing to
write such notes about. We don't really do screenshots for bugfixes. :)

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.