This site requires JavaScript, please enable it in your browser!
Greenfoot back
JaSSoftware
JaSSoftware wrote ...

2015/8/7

Promote Code Snippet to Method

JaSSoftware JaSSoftware

2015/8/7

#
Is there a command that can automatically PROMOTE a section of code into a Method (within the same class). You would select a section of code - Activate the Promote Method which will ask you for a method name. Then the code would be replaced with the method_name() ...and insert a section of code (at the end) with... public void Method_Name() { // Highlighted code inserted here! } -- Alternate. The code could (instead) by re-inserted into the clipboard and let the Coder insert it where they want. BTW does the editor have an UNDO feature?
You need to login to post a reply.