{"id":22413194,"url":"https://github.com/jssscode/skills-copilot-codespaces-vscode","last_synced_at":"2025-03-27T03:24:57.000Z","repository":{"id":215828970,"uuid":"657612088","full_name":"JsssCode/skills-copilot-codespaces-vscode","owner":"JsssCode","description":"My clone repository","archived":false,"fork":false,"pushed_at":"2023-10-01T20:10:15.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T08:48:03.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JsssCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-23T12:48:00.000Z","updated_at":"2023-06-23T15:38:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9b0fb09-7f89-45d6-86ae-27b67d00317e","html_url":"https://github.com/JsssCode/skills-copilot-codespaces-vscode","commit_stats":null,"previous_names":["jssscode/skills-copilot-codespaces-vscode"],"tags_count":0,"template":false,"template_full_name":"skills/copilot-codespaces-vscode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsssCode%2Fskills-copilot-codespaces-vscode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsssCode%2Fskills-copilot-codespaces-vscode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsssCode%2Fskills-copilot-codespaces-vscode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsssCode%2Fskills-copilot-codespaces-vscode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JsssCode","download_url":"https://codeload.github.com/JsssCode/skills-copilot-codespaces-vscode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245774759,"owners_count":20670007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-05T14:12:13.311Z","updated_at":"2025-03-27T03:24:56.982Z","avatar_url":"https://github.com/JsssCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cheader\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Course header \u003e\u003e\u003e\n  Read \u003chttps://skills.github.com/quickstart\u003e for more information about how to build courses using this template.\n  Include a 1280×640 image, course name in sentence case, and a concise description in emphasis.\n  In your repository settings: enable template repository, add your 1280×640 social image, auto delete head branches.\n  Next to \"About\", add description \u0026 tags; disable releases, packages, \u0026 environments.\n  Add your open source license, GitHub uses the MIT license.\n--\u003e\n\n# Code with GitHub Copilot\n\n_GitHub Copilot can help you code by offering autocomplete-style suggestions right in VS Code and Codespaces._\n\n\u003c/header\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Step 4 \u003e\u003e\u003e\n  Start this step by acknowledging the previous step.\n  Define terms and link to docs.github.com.\n--\u003e\n\n## Step 4: Using comments to generate code with Copilot\n\n_Nicely done utilizing the Copilot tab!_ :partying_face:\n\nYou now have leveraged the Copilot quick tab auto-suggest as well as the Copilot hub to accept AI generated suggestions.\n\nNow lets see how you can leverage comments to generate Copilot suggestions!\n\n### :keyboard: Activity: Pull the latest code to the Codespace repo.\n\n\u003e **Note**\n\u003e Pull MUST be done prior to the next activity.\n\n1. Use the VS Code terminal to pull the latest code:\n\n   ```\n   git pull\n   ```\n\n### :keyboard: Activity: Generate Copilot suggested code from comments.\n\n1. From inside the codespace in the VS Code explorer window, create a new file. (If you closed the Codespace from above, please open it back up or create a new Codespace.)\n2. Name the file `comments.js`.\n3. Type the following comment into the file:\n   ```\n   // Create web server\n   ```\n4. Press `enter` to go to a new line.\n5. Copilot will suggest a code block.\n6. Hover over the red squggly and select the `...`\n\n   \u003e **Note**\n   \u003e If you don't see the copilot code block suggestion or the red squiggly and the three dots `...`, you can type `control + enter` to bring up the GitHub Copilot completions panel.\n\n7. Click `Open Completions Panel`. Copilot will synthesise around 10 different code suggestions. You should see something like this:\n   ![Screen Shot 2023-04-25 at 3 59 42 PM](https://user-images.githubusercontent.com/26442605/234425509-74ea96e0-bbd6-417b-84c5-73546ac7b2cd.png)\n8. Find a solution you like and click `Accept Solution`.\n9. Your `comments.js` file will be updated with your solution.\n\n### :keyboard: Activity: Push code to your repository from the codespace\n\n1. Use the VS Code terminal to add the `comments.js` file to the repository:\n\n   ```\n   git add comments.js\n   ```\n\n2. Next from the VS Code terminal stage and commit the changes to the repository:\n\n   ```\n   git commit -m \"Copilot third commit\"\n   ```\n\n3. Finally from the VS Code terminal push to code to the repository:\n\n   ```\n   git push\n   ```\n\n**Wait about 60 seconds then refresh your repository landing page for the next step.**\n\n\u003cfooter\u003e\n\n\u003c!--\n  \u003c\u003c\u003c Author notes: Footer \u003e\u003e\u003e\n  Add a link to get support, GitHub status page, code of conduct, license link.\n--\u003e\n\n---\n\nGet help: [Post in our discussion board](https://github.com/skills/.github/discussions) \u0026bull; [Review the GitHub status page](https://www.githubstatus.com/)\n\n\u0026copy; 2023 GitHub \u0026bull; [Code of Conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/code_of_conduct.md) \u0026bull; [MIT License](https://gh.io/mit)\n\n\u003c/footer\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjssscode%2Fskills-copilot-codespaces-vscode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjssscode%2Fskills-copilot-codespaces-vscode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjssscode%2Fskills-copilot-codespaces-vscode/lists"}