Skip to content

Commit

Permalink
Merge pull request #7878 from ntrogh/ntrogh-1961
Browse files Browse the repository at this point in the history
Merge Copilot Free content
  • Loading branch information
ntrogh authored Dec 18, 2024
2 parents 28d20d0 + 44e2d7a commit 60a9151
Show file tree
Hide file tree
Showing 34 changed files with 386 additions and 86 deletions.
3 changes: 3 additions & 0 deletions blogs/2024/12/18/blog-video-v2.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/ccdt-commit-msgs.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/copilot-rename-v2.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/copilot-rename.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/copilot-vision-generate-ui.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/copilot-vision-markdown.mp4
Git LFS file not shown
157 changes: 157 additions & 0 deletions blogs/2024/12/18/free-github-copilot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
---
Order: 91
TOCTitle: Announcing Copilot Free in VS Code
PageTitle: Announcing a free GitHub Copilot for VS Code
MetaDescription: Announcing a free plan for GitHub Copilot in Visual Studio Code.
Date: 2024-12-18
Author: Burke Holland
---

# Announcing a free GitHub Copilot for VS Code

We're excited to announce an all new **free plan for GitHub Copilot**, available for everyone today in VS Code. All you need is a GitHub account. No trial. No subscription. No credit card required.

[Enable GitHub Copilot Free](https://aka.ms/vscode-activatecopilotfree)

You can click on the link above or just enable GitHub Copilot right from within VS Code like so...

<video src="blog-video-v2.mp4" title="Copilot Edits video" controls></video>

With GitHub Copilot Free you get **2000 code completions/month**. That's about 80 per working day - which is a lot. You also get **50 chat requests/month**, as well as **access to both GPT-4o and Claude 3.5 Sonnet models**.

If you hit these limits, ideally it's because Copilot is doing its job well, which is to help you do yours! If you find you need more Copilot, the [paid Pro plan](https://github.com/features/copilot#pricing-2) is unlimited and provides access to additional models like **o1** and **Gemini** (coming in the new year).

With this announcement, GitHub Copilot becomes a core part of the VS Code experience. The team has been hard at work, as always, improving that experience with brand new AI features and capabilities. Let’s take a look at some of the newer additions to GitHub Copilot that dropped in just the past few months. This is your editor, redefined with AI.

## Work with multiple files using Copilot Edits

[Copilot Edits](https://code.visualstudio.com/docs/copilot/copilot-edits) is a multi-file editing experience that you can open from the top of the chat side bar. Given a prompt, Edits will propose changes across files including creating new files when needed. This gives you the conversational flow of chat combined with the power of Copilot's code generation capabilities. The result is something you have to try to believe.

<video src="../../11/12/blog-video-demo.mp4" title="Copilot Edits video" autoplay muted controls></video>

**Try this:** Build a native mobile app using Flutter. I [built a game last weekend](https://youtu.be/Vj13SdN6OxU?si=sUvbBw0KSQ5q6iWh) and I've never used Flutter in my life.

## Multiple models, your choice

Whether you're using [Chat](https://code.visualstudio.com/docs/copilot/copilot-chat), [Inline Chat](https://code.visualstudio.com/docs/copilot/getting-started-chat#_stay-in-the-flow-with-inline-chat), or [Copilot Edits](https://code.visualstudio.com/docs/copilot/copilot-edits), you get to decide who your pair programmer is.

![AI model selection menu in VS Code.](model-picker.png)

**Try this:** Use 4o to generate an implementation plan for a new feature and then feed that prompt to Claude in [GitHub Copilot Edits](https://code.visualstudio.com/docs/copilot/copilot-edits) to build it.

## Custom instructions

Tell GitHub Copilot exactly how you want things done with [custom instructions](https://code.visualstudio.com/docs/copilot/copilot-customization). These instructions are passed to the model with every request, allowing you to specify your preferences and the details that the model needs to know to write code the way you want it.

You can specify these at the editor or project level. We'll even pick them up automatically if you include a `.github/copilot-instructions.md` file in your project. These instructions can easily be shared with your team, so everyone can be on the same page - including GitHub Copilot.

For example...

```markdown
## React 18
* Use functional components
* Use hooks for state management
* Use TypeScript for type safety

## SvelteKit 4
* Use SSR for dynamic content rendering
* Use static site generation (SSG) for pre-rendered static pages.

## TypeScript
* Use consistent object property shorthand: const obj = { name, age }
* Avoid implicit any
```

**Try this:** Ask Copilot to generate the command to dump your database schema to a file and then set that file as one of your custom instructions.

## Full project awareness

GitHub Copilot has AI powered domain experts that you can mention with the `@` syntax. We call these, "participants". The [`@workspace` participant](https://code.visualstudio.com/docs/copilot/workspace-context) is a domain expert in the area of your entire codebase.

<video src="workspace-v2.mp4" title="VS Code's source control view showing a staged file. A commit message gets auto-generated by clicking a sparkle icon based on the staged changes" autoplay muted controls></video>

GitHub Copilot will also do intent detection (as seen in the video) and include the `@workspace` automatically if it sees you are asking a question that requires full project context.

**Try this:** Type `/help` into the chat prompt to see a list of all the particpants in GitHub Copilot and their various areas of expertise, as well as slash commands that can greatly reduce prompting.

## Naming things and other hard problems

They say naming things is one of the hardest problems in computer science. Press `F2` to rename something, and GitHub Copilot will give you some suggestions based on how that symbol is implemented and used in your code.

<video src="copilot-rename-v2.mp4" title="Copilot Edits video" autoplay muted controls></video>

**Try this:** If you don't know what to call something, don't overthink it. Just call it `foo` and implement it. Then hit `F2` and let GitHub Copilot suggest a name for you.

## Speak your mind

Select the microphone icon to start a voice chat. This is powered by the free, cross-platform [VS Code Speech extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-speech) that runs on local models. No 3rd party app required.

![VS Code with file list and voice input active.](vscode-speech.png)

**Try this:** Use Speech with GitHub Copilot Edits to prototype your next app. You can literally talk your way to a working demo.

## Be a terminal expert

With terminal chat, you can do just about anything in your terminal. Press <kbd>Cmd</kbd>/<kbd>Ctrl</kbd> + <kbd>i</kbd> while in the VS Code terminal and tell GitHub Copilot what you want to do. Copilot can also explain how to fix failed shell commands by analyzing the error output.

For instance, I know that I can use the [ffmpeg library](https://ffmpeg.org/) to extract frames from videos, but I don't know the syntax and flags. No problem!

![Terminal displaying a script to extract video frames.](terminal-inline-chat.png)

**Try this:** The next time you get an error in your terminal, look for the sparkle icon next to your prompt. Select it to have GitHub Copilot fix, explain, or even auto-correct the shell command for you.

## No fear of commitment

No more commits that say "changes". GitHub Copilot will suggest a commit message for you based on the changes you've made and your last several commit messages. You can [use custom instructions for commit generation](https://code.visualstudio.com/docs/copilot/copilot-customization#_define-commit-message-generation-custom-instructions) to format the messages _exactly_ the way you want.

<video src="ccdt-commit-msgs.mp4" title="Copilot Edits video" autoplay muted controls></video>

**Try this:** Go beyond commits. Install the [GitHub Pull Requests and Issues extension](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github) and you can generate pull request descriptions, get summaries of pull requests and even get suggested fixes for issues. All without leaving VS Code.

## Extensions are all you need

Every VS Code extension can tie directly into the GitHub Copilot APIs and offer a customized AI experience. Check out MongoDB with [their extension](https://marketplace.visualstudio.com/items?itemName=mongodb.mongodb-vscode) that can write impressively complex queries, use fuzzy search and a lot more...

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/MLWlWrRAb4w?si=FzYwY_lOLUlfOmQ7" title="VS Code MongoDB extension" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

**Try this:** Build your own extension for GitHub Copilot using GitHub Copilot! We've created some new tutorials that show you how to [build a code tutor chat paricipant](https://code.visualstudio.com/api/extension-guides/chat-tutorial) or [generate AI-powered code annotations](https://code.visualstudio.com/api/extension-guides/language-model-tutorial).

## A vision for the future

This last one is a preview of something we're adding to GitHub Copilot soon, but it's way too cool not to show you right now.

Install the [Vision Copilot Preview extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-copilot-vision) and ask GitHub Copilot to generate an interface based on a screenshot or markup.

<video src="copilot-vision-generate-ui.mp4" title="Copilot Edits video" autoplay muted controls></video>

Or use it to generate alt text for an image.

<video src="copilot-vision-markdown.mp4" title="Copilot Edits video" autoplay muted controls></video>

**Try this:** Mock up a UI using Figma or Sketch (or PowerPoint - it's ok if you do that. I do it too). Then use `@vision` to generate the UI. You can even tell it which CSS framework to use.

_Note:_ Vision is in preview today and requires you to have your own OpenAI, Anthropic, or Gemini API key. The key will not be required when we release it as part of GitHub Copilot. Coming Soon!

## Keeping up with GitHub Copilot

There's so much more GitHub Copilot we want to show you, but nothing can replace the experience of trying it for yourself. If you're just getting started, we recommend you check out [these 3 short videos](https://github.com/features/copilot/getting-started) to bring you up to speed quickly on the Copilot UI, as well as learning some prompt engineering best practices.

We ship updates and new features for GitHub Copilot every month. The best way to keep up with the latest and greatest in AI coding is to follow us on [X](https://twitter.com/code), [Bluesky](https://bsky.app/profile/vscode.dev), [LinkedIn](https://www.linkedin.com/showcase/vs-code/), and even [TikTok](https://www.tiktok.com/@vscode). We'll give you the updates as they drop - short and sweet - right in your feed.

And if you've got feedback, we'd love to hear it. Feel free to @ us on social or drop an issue or feature request on the [GitHub Copilot extension issues repo](https://github.com/microsoft/vscode-copilot-release).

## GitHub Copilot in other places

As part of the free tier, you will also be able to use GitHub Copilot on GitHub.com.

While we work with GitHub to build the Visual Studio Code experience, Copilot itself is not exclusive to VS Code. You may be wondering about editors like Visual Studio. Will those users get a free Copilot offering as well?

Yes. Absolutely. Check out [this blog post](https://aka.ms/copilot-free-vs) from the VS team on what works today and what’s coming shortly.

## The AI code editor for everyone

2025 is going to be a huge year for GitHub Copilot, now a core part of the overall VS Code experience. We hope that you’ll join us on the journey to redefine the code editor. Again.

[Enable GitHub Copilot Free](https://aka.ms/vscode-activatecopilotfree)


3 changes: 3 additions & 0 deletions blogs/2024/12/18/github-copilot-free-blog-video.mp4
Git LFS file not shown
3 changes: 3 additions & 0 deletions blogs/2024/12/18/model-picker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions blogs/2024/12/18/terminal-inline-chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions blogs/2024/12/18/vscode-speech.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions blogs/2024/12/18/workspace-v2.mp4
Git LFS file not shown
14 changes: 5 additions & 9 deletions docs/copilot/ai-powered-suggestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,16 @@ GitHub Copilot acts as an AI-powered pair programmer, automatically offering sug

## Getting started

1. Install the GitHub Copilot extension. This also installs the GitHub Copilot Chat extension.
1. Install the GitHub Copilot extensions.

> <a class="install-extension-btn" href="vscode:extension/GitHub.copilot">Install the GitHub Copilot extension</a>
> <a class="install-extension-btn" href="vscode:extension/GitHub.copilot?referrer=docs-copilot-ai-powered-suggestions">Install the GitHub Copilot extensions</a>
1. Follow the steps in the [Copilot setup guide](/docs/copilot/setup.md) to configure GitHub Copilot in VS Code.
1. Sign in with your GitHub account to use Copilot.

> [!TIP]
> If you don't yet have a GitHub Copilot subscription, sign up for a [GitHub Copilot free trial](https://github.com/login?return_to=%2fgithub-copilot%2fsignup) in your personal account.
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
1. Get going with these hands-on tutorials to learn how to use GitHub Copilot in VS Code.

* [GitHub Copilot Quickstart](/docs/copilot/getting-started.md) - discover the key features of GitHub Copilot in VS Code.

* [Copilot Chat Tutorial](/docs/copilot/getting-started-chat.md) - get started with AI chat conversations.
1. Discover the key features of Copilot in VS Code with our [Copilot Quickstart](/docs/copilot/getting-started.md).

## Inline suggestions

Expand Down
13 changes: 9 additions & 4 deletions docs/copilot/copilot-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ Copilot Chat integrates in your developer flow and gives you assistance where yo
* [**Chat view**](#chat-view): have an AI assistant on the side to help with your questions and to provide code suggestions
* [**Quick Chat**](#quick-chat): ask a quick question and get back into what you're doing

If you intend to make edits across multiple files in your project, you might consider using [Copilot Edits](/docs/copilot/copilot-edits.md). You can easily [move an existing chat conversation to Copilot Edits](/docs/copilot/copilot-edits.md#send-a-chat-request-to-copilot-edits).

> [!TIP]
> If you intend to make edits across multiple files in your project, you might consider using [Copilot Edits](/docs/copilot/copilot-edits.md). You can easily [move an existing chat conversation to Copilot Edits](/docs/copilot/copilot-edits.md#send-a-chat-request-to-copilot-edits).
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
## Copilot Chat use cases

Expand All @@ -34,11 +36,14 @@ You can use Copilot Chat in various developer scenarios, such as:

## Prerequisites

* To use GitHub Copilot, you must have an active subscription for GitHub Copilot in your personal account, or you need to be assigned a seat by your organization.
1. Install the GitHub Copilot extensions.

> <a class="install-extension-btn" href="vscode:extension/GitHub.copilot?referrer=docs-copilot-copilot-chat">Install the GitHub Copilot extensions</a>
* To use GitHub Copilot in VS Code, you must have the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) extension. When you install this extension, the [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extension is also installed.
1. Sign in with your GitHub account to use Copilot.

Follow these steps to [set up GitHub Copilot in VS Code](/docs/copilot/setup.md) by signing up for a subscription and installing the Copilot extension in VS Code.
> [!TIP]
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
## Getting started with Copilot Chat

Expand Down
5 changes: 5 additions & 0 deletions docs/copilot/copilot-edits.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Use Copilot Edits to start an AI-powered code editing session where you can quic

Copilot Edits is great for iterating on large changes across multiple files. It brings the conversational flow of Copilot Chat and fast feedback from Inline Chat together in one experience. Have an ongoing, multi-turn chat conversation on the side, while benefiting from inline code suggestions.

You can enable the Copilot Edits feature by setting the `setting(github.copilot.chat.edits.enabled)` setting to `true`.

> [!TIP]
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
The following video shows how you can use Copilot Edits to modify a basic Express app and add a new page, implement a navigation bar, and modify the design to include a theme switcher.

<video src="images/copilot-edits/copilot-edits-hero.mp4" title="Use Copilot Edits to modify an Express app" loop controls muted></video>
Expand Down
3 changes: 3 additions & 0 deletions docs/copilot/copilot-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ MetaSocialImage: images/shared/github-copilot-social.png

This article lists the configuration settings for GitHub Copilot in Visual Studio Code. For general information about working with settings in VS Code, refer to [User and workspace settings](/docs/getstarted/settings.md), as well as the [Variables reference](/docs/editor/variables-reference.md) for information about predefined variable support.

> [!TIP]
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
The team is continuously working on improving Copilot in VS Code and adding new features. Items marked with <i class="codicon codicon-beaker"></i> are experimental features. Try them out and share your feedback in [our issues](https://github.com/microsoft/vscode-copilot-release/issues). Get more info about the [feature lifecycle in VS Code](/docs/getstarted/settings.md#feature-lifecycle).

## General settings
Expand Down
3 changes: 3 additions & 0 deletions docs/copilot/copilot-vscode-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ GitHub Copilot in Visual Studio Code provides AI-powered features to help you wr

You can access GitHub Copilot in VS Code through the Chat view, directly in the editor, from the integrated terminal, and via AI-powered enhancements in the VS Code user interface.

> [!TIP]
> If you don't yet have a Copilot subscription, you can use Copilot for free by signing up for the [Copilot Free plan](https://github.com/github-copilot/signup) and get a monthly limit of completions and chat interactions.
The team is continuously working on improving Copilot in VS Code and adding new features. Items in the cheat sheet marked with <i class="codicon codicon-beaker"></i> are experimental features. Try them out and share your feedback in [our issues](https://github.com/microsoft/vscode-copilot-release/issues).

## Chat with GitHub Copilot
Expand Down
Loading

0 comments on commit 60a9151

Please sign in to comment.