Can codetools insert procedure definition with parameters? lazarus / 9-Editor ---------------------------------------------------------------------- vfclists · 2011-11-01 16:19 When I declare a procedure and want to implement via TObjectName., when I press the dot to bring up the picklist selecting the procedure name does not add the parameters which need to be added manually. Is there some the CodeTools can also copy the procedure parameters from the declaration? ---------------------------------------------------------------------- howardpc · 2011-11-01 19:41 I don't know of one. However, pressing [Control][Shift][Space] (if you have the default keymapping) invokes the "show code context" command which gives you the parameters for a procedure or function in a hint box above the code. Your cursor has to be within the ( ) following the procedure name for this key combination to work. The attached .png shows two overloaded versions of the FillRect() function displayed with appropriate parameters. It cleverly emboldens the next parameter that you need to supply as you fill in the empty parentheses. ---------------------------------------------------------------------- howardpc · 2011-11-01 19:47 I should have mentioned that the small blue button to the right of the hint inserts the parameters from that declaration into your code when you click it. Very cool. ---------------------------------------------------------------------- vfclists · 2011-11-06 14:29 Is this feature present in 0.9.30? Only the Ctrl-Space combination works in the editor. Ctrl-Shift-Space does nothing. Quote from: howardpc on November 01, 2011, 08:41:31 pmI don't know of one. However, pressing [Control][Shift][Space] (if you have the default keymapping) invokes the "show code context" command which gives you the parameters for a procedure or function in a hint box above the code. Your cursor has to be within the ( ) following the procedure name for this key combination to work. The attached .png shows two overloaded versions of the FillRect() function displayed with appropriate parameters. It cleverly emboldens the next parameter that you need to supply as you fill in the empty parentheses. ---------------------------------------------------------------------- vfclists · 2014-09-09 13:47 Quote from: vfclists on November 06, 2011, 03:29:06 pmIs this feature present in 0.9.30? Only the Ctrl-Space combination works in the editor. Ctrl-Shift-Space does nothing. Quote from: howardpc on November 01, 2011, 08:41:31 pmI don't know of one. However, pressing [Control][Shift][Space] (if you have the default keymapping) invokes the "show code context" command which gives you the parameters for a procedure or function in a hint box above the code. Your cursor has to be within the ( ) following the procedure name for this key combination to work. The attached .png shows two overloaded versions of the FillRect() function displayed with appropriate parameters. It cleverly emboldens the next parameter that you need to supply as you fill in the empty parentheses. Over 2 years after asking the quesion, I've got it. ---------------------------------------------------------------------- Mike.Cornflake · 2014-09-09 14:24 Quote from: vfclists on September 09, 2014, 03:47:40 pmOver 2 years after asking the quesion, I've got it.  Well, I'm glad you reopened this old topic, because I've just learned something :-)  Many thanks. Quote from: howardpc on November 01, 2011, 08:47:43 pmI should have mentioned that the small blue button to the right of the hint inserts the parameters from that declaration into your code when you click it. Very cool.