0% found this document useful (0 votes)
53 views26 pages

What's New For Visual Studio Code

Uploaded by

xisoga3849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views26 pages

What's New For Visual Studio Code

Uploaded by

xisoga3849
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

VS Code @ CppCon 2024

What’s new for Visual Studio Code: Performance,

GitHub Copilot, and CMake Enhancements

(Provided by Conference)
Meet the Speakers

Alexandra Kemper
PM for the C++ Extension for VS Code

Sinem Akinci
PM for C++ Copilot and CMake in VS Code
Agenda: What's new in VS Code
Faster Performance

Smarter GitHub Copilot suggestions

Easier to use Features for CMake & C/C++

Extensible and secure Copilot solutions


Wait I want to learn about Visual Studio!
Check out the talk tomorrow @ 13:30 “What’s New in
Visual Studio for C++ Developers” – Mryam Girmay &
Michael Price
VS Code has a rich extension ecosystem
Extensions we’ll cover today:
Code Faster with Performance Improvements
• 3.6x faster symbol search
+ new fuzzy search

• 1.5x faster time to IntelliSense


+ progressive IntelliSense

• 2-3x faster startup time [Insiders]

https://aka.ms/cpp/perf
Code Faster with Performance Improvements
• 3.6x faster symbol search
+ new fuzzy search

• 1.5x faster time to IntelliSense


+ progressive IntelliSense

• 2-3x faster startup time [Insiders]

https://aka.ms/cpp/perf
Code Faster with Performance Improvements
• 3.6x faster symbol search
+ new fuzzy search

• 1.5x faster time to IntelliSense


+ progressive IntelliSense

• 2-3x faster startup time [Insiders]


Code Smarter with GitHub Copilot
The world's most widely adopted AI developer tool

Copilot can help you generate code, fix errors, and explain your code
through in-line suggestions or answer questions through the integrated
chat directly in VS Code

Our focus has been on making it smarter,


more reliable, and more integrated
• More relevant responses
• Deeper support for every part
of your workflow

https://github.com/features/copilot
GitHub Copilot at your fingertips in VS Code

Dynamic
context for
custom Code
suggestions Completions
via Inline
suggestions
Ask about
your code
via Chat
Add Chat Context with participants
More context provided leads to more informed and relevant responses
Add context to your chat commands by using Participants:

Questions about your Workspace?

Questions about VS Code?

Questions about a specific file?

Coming soon:
• #cpp for C++ project context (i.e. language standard, target OS, compiler name)
• Smart intent detection to detect participants + tools
Get specific with / commands

Use / commands to specify your intent:


In-line Completions tailored to C++
Directly-referenced C++ header files are automatically
included as eligible context
Before After

https://aka.ms/cpp/copilot/completions
Demo
Recap: New CMake & C++ Productivity features
Extract to Method CMake Side Panel

Updated CMake Floating Editor Windows


Quick Start
Recap: New GitHub Copilot Features
Copilot in Quick Info (coming soon)

Fix using Rename


Copilot Commit Messages Suggestions
How can I tailor Copilot to fit my unique
needs?
Build custom Copilot
As a VS Code Extension capabilities for your extension
Author using new APIs

Customize Copilot to your needs


As a user or an organization
using custom models,
with specific coding needs
instructions, and more…
Build custom Copilot Chat features
Build your own custom features with the Language Model API to integrate AI-
powered features and natural language processing into your VS Code extension

1. Build the language model prompt


2. Send the language model request
3. Interpret the response
Extend Copilot Chat to match your needs
Build your own custom domain experts in
the form of chat participants by using the
Chat Extension API
- Get results for custom prompts
- Act as autonomous agents with invoke
tools

Use this to provide responses in the form of:


- Buttons to invoke VS Code commands
- References to URLs
- Text, image, or code responses
Chat Participant Demo
How can I tailor Copilot to fit my unique
needs?
Build custom Copilot
As a VS Code Extension capabilities for your extension
Author using new APIs

Customize Copilot to your needs


As a user or an organization
using custom models,
with specific coding needs
instructions, and more…
Custom Models for tailored Copilot suggestions
Receive more personalized and precise code suggestions by fine-tuning a custom
model to your unique needs, such as
• training on a specific source code repository
• training on an organization’s specific coding style, preferred libraries, and internal
jargon

“Code completion is much better than before. It seems to generate functions quite well,
given arguments, return type and a comment explaining what the function does. I personally
used it to write a block of authentication code where a pop-up would be shown only if silent
login fails”. – Office AI, using fine-tuned model on their C++ repo

Free during beta, join the waitlist @ https://aka.ms/copilot/custommodels


Content Exclusion [Public Beta]
• Configure Copilot to ignore certain files (by path), these files
o Will not have code completions available
o Will not be used for context for code completion suggestions in other files
o Will not be used to inform GitHub Copilot Chat responses

• Managed by organization owners


Example: Ignore all .env files
• Supports git & non-git based repos

https://aka.ms/copilot/exclude_content
Custom Instructions [Preview]
Provide knowledge and specify
hints for Copilot Chat to take
into context when answering
requests specific to your
workspace and needs
Installing Copilot
You must have an active GitHub Copilot
subscription to use Copilot

GitHub Copilot and Copilot Chat are


separate extensions in VS Code
downloadable through the extension
marketplace

Learn More at aka.ms/copilotchatVSCode


Questions?
Upcoming talks:
Friday @13:30: “What’s New in Visual Studio for C++ Developers” – Mryam
Girmay & Michael Price

@VisualC
@AlexandraKemperMS
@Sinem__Akinci (double underscore)

[email protected]

Want to learn more? Watch our 2023 CppCon talk at aka.ms/CppCon2023/VSCode

You might also like