Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 822 Bytes

code-referencing-verifying.md

File metadata and controls

16 lines (11 loc) · 822 Bytes

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.

  1. Create a file called fizz-buzz.js and open it in the editor.

  2. Display the log as described in the previous section.

  3. 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.

  4. To accept the suggestion, press Tab.

  5. Check whether any entries for similar code have been added to the log.