Hi,
This is exactly what I was looking for a day or so back. The problem
with ctrl-w is that is can take several keystrokes to select the method
/ class you are in and the exact number of key strokes depends on the
code and your position in it as well.
Can we not have a seperate command bound to a new key that will, in one
go, select the current method (and optionally its comments) or if you
are in a class but outside of a method then select the entire class
(again inc comments as an option)
I think this would be a very good time saver
Any possability of having this added please ?
Huw
Tal Dayan wrote:
>Thanks. This is what I looked for.
>
>It works well only if:
>
>1. you start with the caret on the method declaration (e.g. its name) as
>opposed to inside its body.
>
>2. the method header comments is a javadoc block ('/**' as opposed to '/*').
>
>Otherwise, the CTRL-W expands the selection but for some reason skips over
>the
>selection of the entire method (looks like a bug to me).
>
>Tal
>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>>Behalf Of Arun Batchu
>>Sent: Thursday, October 04, 2001 4:38 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [Eap-list] What is the easiest way to copy a method
>>
>>
>>Repeated Ctrl-W should do it I think.
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>>Behalf Of Tal Dayan
>>Sent: Thursday, October 04, 2001 6:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: [Eap-list] What is the easiest way to copy a method
>>
>>
>>So, let I rephrase the question... ;-)
>>
>>What is the eaisest way to select a mehod including its header
>>comments ?
>>
>>Since IDEA is aware of method boundaries (see method seperation lines),
>>I would expect it to have somthing better then just basic
>>find-start/drag-to-end/copy
>>sequence.
>>
>>Thanks,
>>
>>Tal
>>
>>>-----Original Message-----
>>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
>>>Behalf Of Valentin Kipiatkov
>>>Sent: Thursday, October 04, 2001 3:57 AM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [Eap-list] What is the easiest way to copy a method
>>>
>>>
>>>Why not select, Copy and Paste it?
>>>
>>>Best regards,
>>>Valentin Kipiatkov
>>>-----------------------------------------------------------
>>> IntelliJ Software, http://www.intellij.com/
>>> "Develop with pleasure"
>>>-----------------------------------------------------------
>>>
>>>----- Original Message -----
>>>From: "Tal Dayan" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Thursday, October 04, 2001 5:50 AM
>>>Subject: [Eap-list] What is the easiest way to copy a method
>>>
>>>
>>>>This is something I encounter very frequently. I want to create a new
>>>>method based on an existing method (typically in the same file but not
>>>>always).
>>>>
>>>>What is the easiest way to copy a method (including its
>>>>
>>header comments
>>
>>>>whether they
>>>>are javadoc or not) and rename the new copy ?
>>>>
>>>>Thanks,
>>>>
>>>>Tal
>>>>
>>>>
>>>>_______________________________________________
>>>>Eap-list mailing list
>>>>[EMAIL PROTECTED]
>>>>http://www.intellij.com/mailman/listinfo/eap-list
>>>>
>>>
>>>_______________________________________________
>>>Eap-list mailing list
>>>[EMAIL PROTECTED]
>>>http://www.intellij.com/mailman/listinfo/eap-list
>>>
>>
>>_______________________________________________
>>Eap-list mailing list
>>[EMAIL PROTECTED]
>>http://www.intellij.com/mailman/listinfo/eap-list
>>
>>_______________________________________________
>>Eap-list mailing list
>>[EMAIL PROTECTED]
>>http://www.intellij.com/mailman/listinfo/eap-list
>>
>
>
>_______________________________________________
>Eap-list mailing list
>[EMAIL PROTECTED]
>http://www.intellij.com/mailman/listinfo/eap-list
>
>
>
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list