Jon Rumsey

An online markdown blog and knowledge repository.


Project maintained by nojronatron Hosted on GitHub Pages — Theme by mattgraham

GitHub Copilot

This will be a collection of information collected while attending presentations, events, and etc. The first event was an overview of GitHub Copilot at a basic level. Additional topics go into GH Copilot more deeply, providing demonstration, how-tos, and other information.

Table of Contents

GitHub Copilot Basics - MSFT Reactor

Presenter: Liam Champton @liamchampton

Presenter: Kory - Cloud Advocate @koreyspace

GitHub Copilot is an AI-powered utility that can help you code, debug, and refactor your solutions.

Note: GitHub and Microsoft are working to develop "Co-Pilots" for many scenarios, other than coding.

Codespaces

Launch And Use Codespaces

In GitHub:

  1. Click Code button
  2. Select Codespaces
  3. Create new

Plans:

There was also mention of the time-limited constraint of 120 hours per month.

Dotfiles

Environment variable files like .env

Templates in Codespaces

Quickstart templates designed to get up-and-running quickly:

Templates are OSS and there is an open invitation to contribute!

Benefits

About Frameworks

Codespaces reduces setup and installation time.

Codespaces also helps with framework setup because n+1 workspaces are just clones of the initial setup!

Cloud Development Challenges

Configure and name the policy and apply it to Codespaces projects to:

Codespaces Environment Benefits

Configurable, customized environment!

Since Codespaces uses a virtual machine behind the scenes, code can be built and executed in the same window.

Multi-window layouts support viewing multiple files within the environment window e.g.: Explorer, README.md, some-file.js, and a Terminal window.

Can open a repository using other IDEs:

Processes That Kick-Off When Creating New

  1. VM and storage are assigned to new Codespace.
  2. Container is created.
  3. Connection to Codespace is made.
  4. Post-creation setup is made.

Components:

Compare With GitHub.dev

Differences from Codespaces:

Codespaces Resources

As of March 2024: Prepare for GitHub Certification Exams.

intro-codespaces repository.

Self-guided Codespaces walkthroughs.

Copilot

Copilot Chat:

Demo Notes:

The GitHub Next Team and Project

VSCodeDay was an event in April 2023, focused on VS Code and some of the Microsoft and GitHub improvements and integrations. The following notes result from watching some of the VS Code Day 2023 presentations.

Whats New WIth Github Next

Presenter: Amelia Wattenberger, Principal Research Engineer, GitHub Next

Amelia created VSCode Extension: Footsteps, as a result of an interview challenge (homework) in 2020. This is published in the Marketplace.

Note: VS Code Extensions might be built in TypeScript.

Check out Your First Extension.

Summary Notes

CoPilot: AI pair-programmer.

GitHub Next team is a prototyping team "build prototypes, not products".

CoPilot started as a set of Panels:

Get familiar with VSCode Primitives to help improve Extension creation process.

GitHub Next is working on LLM-based solutions like:

VSCode Primitives

Contextual Toolbar: CodeLens as an example. Tools that appear in-line or above a code block or segment.

Line Decoration: Colorization, highlighting, etc of line(s) of code. Usually signals something such as in Footsteps extension, it highlights code you've recently edited.

Diagnostic panel: Problems View as an example. Other tools can be put in the Diagnostic Panel, usually related to logging, errors, results from actions, etc.

Webview Panel: The list of tools like Explorer, Extensions like ThunderClient or Azure, the Extensions add/remove tool, Profile/Login status icon, and the Settings icon.

Pragmatic Techniques To Get The Most Out Of GitHub Copilot

Presenters

Allison Weins: Senior Product Manager, GitHub

Burke Holland: Principal Cloud Advocate, Microsoft

Limitations

Single, Specific, Short

Examples via Demos

Provide Effective Intents

Relevent Inputs and Context

Remember: Prompts are limited, so as not to overwhelm the network, or the cloud-based processing.

Highlight Suggestions

  1. Highlight code and the suggestions lightbulb will appear.
  2. Click the lightbulb and Copilot will provide suggestions for the highlighted code.
  3. You have the option to accept or reject the suggestion.

MS Dev Labs Adventures with GitHub Copilot in VSCode

These are notes from a livestream hosted by Olivia Guzzardo Marc Baiza Tech Progm MSFT AI + ML Abril DevTools at MSFT

Copilot Adventures

Repo set up with challenges to solve using GitHub Copilot.

There are beginner, intermediate, and advanced level challenges.

CoPilot Chat

Press CTRL + i to launch CoPilot Chat in VSCode or CodeSpaces.

Plaintext inputs:

Slash Commands:

How can GH CoPilot help me?

GitHub Copilot and Infrastructure As Code

Presentation: How to Accelerate Infrastructure As Code Adoption - MSFT Reactor

Presenter: Adil Touati - Sr. Cloud Solution Architect, Montreal CA. GitHub

About GitHub Copilot

Copilot and Copilot Chat:

Advice:

Copilot For IaC - In Action

Use prompt-engineering concepts.

Use #<filename> to reference all related files when prompting Copilot. Lots of files can be referenced.

Highlight code, press CTRL + I and the Inline Prompt will automatically use the highlighted code as part of the question context.

Building Automation With GitHub

Microsoft Reactor session notes from "Building Automation With GitHub"

Presenters:

This session is part of preparation for GitHub Cloud Certification.

There will be more sessions June 12th, 19th, and 26th.

Some notes:

References

General Links from 'Level Up Your App Development Using GitHub Copilot and Codespaces' MSFT Reactor Session.

Check out GitHub Next for information on what the GitHub Next team is working on.

Developing Your First Extension.

GitHub CLI supports Github Copilot! See Github Copilot CLI Installer.

Return to Conted Index

Return to Root Readme