Skip to content
View is996s's full-sized avatar

Block or report is996s

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
is996s/README.md

Deprecation Badge

This course has been deprecated. Please visit the Getting Started with GitHub Copilot exercise for the newest learning content.

Code with GitHub Copilot

GitHub Copilot can help you code by offering autocomplete-style suggestions right in VS Code and Codespaces.

Step 1: Leverage Codespaces with VS Code for Copilot

Welcome to "Develop With AI Powered Code Suggestions Using GitHub Copilot and VS Code"! 👋

GitHub Copilot is an AI pair programmer that helps you write code faster and with less work. It draws context from comments and code to suggest individual lines and whole functions instantly. GitHub Copilot is powered by OpenAI Codex, a generative pretrained language model created by OpenAI.

Copilot works with many code editors including VS Code, Visual Studio, JetBrains IDE, and Neovim.

Additionally, GitHub Copilot is trained on all languages that appear in public repositories. For each language, the quality of suggestions you receive may depend on the volume and diversity of training data for that language.

Using Copilot inside a Codespace shows just how easy it is to get up and running with GitHub's suite of Collaborative Coding tools.

Note This skills exercise will focus on leveraging GitHub Codespace. It is recommended that you complete the GitHub skill, Codespaces, before moving forward with this exercise.

⌨️ Activity: Enable Copilot inside a Codespace

We recommend opening another browser tab to work through the following activities so you can keep these instructions open for reference.

Before you open up a codespace on a repository, you can create a development container and define specific extensions or configurations that will be used or installed in your codespace. Let's create this development container and add copilot to the list of extensions.

  1. Navigating back to your Code tab of your repository, click the Add file drop-down button, and then click Create new file.

  2. Type or paste the following in the empty text field prompt to name your file.

    .devcontainer/devcontainer.json
    
  3. In the body of the new .devcontainer/devcontainer.json file, add the following content:

    {
        // Name this configuration
        "name": "Codespace for Skills!",
        "customizations": {
            "vscode": {
                "extensions": [
                    "GitHub.copilot"
                ]
            }
        }
    }
    
  4. Select the option to Commit directly to the main branch, and then click the Commit new file button.

  5. Navigate back to the home page of your repository by clicking the Code tab located at the top left of the screen.

  6. Click the Code button located in the middle of the page.

  7. Click the Codespaces tab on the box that pops up.

  8. Click the Create codespace on main button.

    Wait about 2 minutes for the codespace to spin itself up.

  9. Verify your codespace is running. The browser should contain a VS Code web-based editor and a terminal should be present such as the below: Screen Shot 2023-03-09 at 9 09 07 AM

  10. The copilot extension should show up in the VS Code extension list. Click the extensions sidebar tab. You should see the following: Screen Shot 2023-03-09 at 9 04 13 AM

Wait about 60 seconds then refresh your repository landing page for the next step.


Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License

Popular repositories Loading

  1. is996s is996s Public

    is996s/is996s is a ✨special ✨ repository that you can use to add a README.md to your GitHub profile. Make sure it’s public and initialize it with a README to get started.

  2. Voting Voting Public

    Ethereum, Solidity, Truffle, React

    C

  3. github-slideshow github-slideshow Public

    Forked from BobbyCuthbert/solana-pumpfun-bot

    A robot powered training repository 🤖

    HTML

  4. world_ai_protocol world_ai_protocol Public

    Forked from WORLD3-ai/world_ai_protocol

    A chain-agnostic, secure delegation framework enabling AI Agents to perform autonomous, permissioned on-chain actions across Web3 ecosystems.

    Move

  5. BabyOS BabyOS Public

    Forked from DadeCoker/solana-arbitrage-bot

    BabyOS适用于MCU项目,她是一套管理功能模块和外设驱动的框架。

    C

  6. SFEL SFEL Public

    Forked from zldp2002/solana-pumpfun-bot

    Tiny FEL tools for allwinner SOC.

    C