You can verify that code referencing is working by prompting {% data variables.product.prodname_copilot_short %} to add some commonly used code and checking the output in the log.
-
Create a file called
fizz-buzz.js
and open it in the editor. -
Display the log as described in the previous section.
-
In the editor, type:
function fizzBuzz()
With a space after the closing parenthesis.
{% data variables.product.prodname_copilot %} should suggest code to complete the function. Typically the suggestion will be a common implementation of the fizz buzz algorithm that will match publicly available code on the {% data variables.product.github %} website.
-
To accept the suggestion, press Tab.
-
Check whether any entries for similar code have been added to the log.