Feature request to insert FQN's in files.

Hello, before posting this to the the tracker, I'd like to know if this complete nonsense to ask for this and how others feel about this.

The situation is that I'm editing a lot of non java files, which are mostly config files, like Spring applicationContexts. There is code completion and full integration with the IDE, which is great. But when I, say for example, use a MethodInvokingFactoryBean (org/springframework/beans/factory/config/MethodInvokingFactoryBean),
I have to type o<ctrlspace>.s<ctrlspace>.be<ctrlspace> ...etc . You get my drift. It would be great to do a Goto Class (ctrlN) style insert, e.g. do a CTRL+N, type MIF, and press enter...

]]>

While I'm testing this, I did the same. I do a CTRLN, type MIF, but now I do a CTRLC (Copy), and the reference is copied. I only have to press escape, and after that Ctrl+v... Well, that might work too! Or is there a better way to do it?




4 comments

Hi Erik,

I really like your idea! I would even push it little bit further and skip popup if not necessary e.g. if MIF is the only match, it should insert it.
If there are more values/matches, it would be nice to just get an "inline popup" (like autocomplete) so you can just type further without getting anything in "your face".
-m

0

Erik Pragt wrote:

While I'm testing this, I did the same. I do a CTRL+N, type MIF, but
now I do a CTRL+C (Copy), and the reference is copied. I only have to
press escape, and after that Ctrl+v... Well, that might work too! Or
is there a better way to do it?


In plain java files you can just type MIF<ctrlaltspace> and have it
completed. Doesn't that work for you in the spring config files?

Bas

0

In article <16507717.1139568529223.JavaMail.javamailuser@localhost>,
no_mail@jetbrains.com says...

Hello, before posting this to the the tracker, I'd like to know if this complete nonsense to ask for this and how others feel about this.

The situation is that I'm editing a lot of non java files, which are mostly config files, like Spring applicationContexts. There is code completion and full integration with the IDE, which is great. But when I, say for example, use a MethodInvokingFactoryBean (org/springframework/beans/factory/config/MethodInvokingFactoryBean),
I have to type o<ctrlspace>.s<ctrlspace>.be<ctrlspace> ...etc . You get my drift. It would be great to do a Goto Class (ctrlN) style insert, e.g. do a CTRL+N, type MIF, and press enter...

<hmm>

While I'm testing this, I did the same. I do a CTRLN, type MIF, but now I do a CTRLC (Copy), and the reference is copied. I only have to press escape, and after that Ctrl+v... Well, that might work too! Or is there a better way to do it?





How about the copyFQN plugin?
--
-


David H. McCoy


-


0

Bas, you are right!!

My bad: I only tested ctrlspace, ctrlshiftspace and ctrlshiftaltspace, but I forgot about ctrlaltspace

Thanks, this works!

Groeten, Erik

0

Please sign in to leave a comment.