Edit in 'View Definition' window

Answered

I'm not sure where to propose ideas, hence this post.
When using the CTRL+SHIFT+I, I can open the 'view definition' window. 
I can move my carret around there. But it might be nice if I were to be able to actually make changes inside this window. 

Kind regards,

Dylan

1
4 comments

Such request already exists at https://youtrack.jetbrains.com/issue/IDEABKL-6676, but it's low priority and in the Backlog project.

If you have any other feature requests, you can submit them at https://youtrack.jetbrains.com/issues/IDEA.

0
Avatar
Permanently deleted user

@Serge

Thank you for that information.
Is this a viable issue to work on against the IntelliJ-community edition repository? 
If that's the case, I could take a look at it. :-) 

0

You could propose a patch for IDEA CE.

Note that it might be tricky and may break the existing functionality (for instance, left/right arrows are used to switch between multiple definitions, that would be impossible if editing is enabled, some users will be unhappy because of this change).

Probably a completely different action can be implemented as a plug-in, like Edit Quick Definition, in this case you will not break the existing functionality and this feature could be added as an optional plugin. Those who need it can reassign the default shortcut from the read-only action to the new edit action provided by your plug-in.

0
Avatar
Permanently deleted user

Your suggestion sounds like a good idea to me. 

An alternative strategy might be to keep only one window and thus only one shortcut, but provide an option inside this window to start editting. Similar to how pressing F4 is an action inside that window which opens the source file, we could give it another action (F3) that toggles the window between 'read-mode' and 'write-mode'. 

I'll take a look at it later today, and see if I can play around with it a bit. :-)

0

Please sign in to leave a comment.