copy-templateCopy-template saves a copy of a selected Ada construct in the ``template buffer''. Appropriate usage templates corresponding to the saved definition can subsequently be inserted using the command paste-template.
Instances of the following syntactic categories can be copied to the template buffer:
subprogram_specification
subprogram_declaration
type_declaration
generic_declaration
entry_declaration
accept_statement
It is not necessary to position the structural selection precisely at such a construct before using copy-template. If one of the permissible constructs is not already selected, copy-template searches forward from the selection for the first occurrence of such an item.
The command is parser-initiating.