is there a key shortcut in Eclipse to copy the whole method body into buffer?
views:
53answers:
3
                +3 
                A: 
                
                
              You can find a list of shortcuts in Eclipse by typing Ctrl+Shift+L.
While you are exploring this list, you will find Alt+Shift+Right which selects the next element. This may be what you are looking for.
                  MatthieuF
                   2010-04-22 10:43:38
                
              Any reason for the downvote here?
                  MatthieuF
                   2010-04-22 10:52:11
                @MatthieuF Very helpful, thank you.
                  EugeneP
                   2010-04-22 13:13:40
                
                +2 
                A: 
                
                
              You can press alt+shift+up several (5-10 if you start from empty selection) times to expand selection to include the whole method body.
                  Ha
                   2010-04-22 10:49:55
                
              Well that's well known ;) If your method body contains > 100 lines it gets difficult.
                  EugeneP
                   2010-04-22 10:56:32
                
                +2 
                A: 
                
                
              
            Little know trick: use the folding feature:
If a method is folded, and if you select the folded line, you will actually copy the full body of said method.

if the Alt+Shift+Up does not work for large number of lines, this will.
                  VonC
                   2010-04-22 11:38:46