惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
MongoDB | Blog
MongoDB | Blog
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
O
OpenAI News
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园 - 聂微东
Engineering at Meta
Engineering at Meta
W
WeLiveSecurity
Hacker News: Ask HN
Hacker News: Ask HN
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News
D
Docker
F
Full Disclosure
AI
AI
罗磊的独立博客
博客园 - 【当耐特】
U
Unit 42
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Palo Alto Networks Blog
博客园_首页
H
Help Net Security
量子位
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
F
Fortinet All Blogs
D
DataBreaches.Net
B
Blog RSS Feed
Webroot Blog
Webroot Blog
TaoSecurity Blog
TaoSecurity Blog
S
Secure Thoughts
爱范儿
爱范儿
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Attack and Defense Labs
Attack and Defense Labs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
C
CERT Recently Published Vulnerability Notes
Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Securelist

Visual Studio Code - Code Editing. Redefined.

Visual Studio Code 1.130 (Insiders) Visual Studio Code 1.129 (Insiders) How Prompt Tuning Improved GPT-5.5 in VS Code Visual Studio Code 1.127 Visual Studio Code 1.128 Iterating faster with TypeScript 7 Visual Studio Code 1.126 What 50,000 Runs of a 5-Line Eval Taught Us Use your own language model key in VS Code Improving token efficiency for GitHub Copilot in VS Code December 2025 (version 1.108) November 2025 (version 1.107) October 2025 (version 1.106) September 2025 (version 1.105) August 2025 (version 1.104) July 2025 (version 1.103) June 2025 (version 1.102) May 2025 (version 1.101) April 2025 (version 1.100) March 2025 (version 1.99) Visual Studio Code 1.114 Visual Studio Code 1.116 Making agents practical for real-world development Visual Studio Code 1.111 How VS Code Builds with AI January 2026 (version 1.109) Visual Studio Code 1.113 Visual Studio Code 1.112 Visual Studio Code 1.115 Your Home for Multi-Agent Development Giving Agents a Visual Voice: MCP Apps Support in VS Code Building docfind: Fast Client-Side Search with Rust and WebAssembly Introducing the VS Code Insiders Podcast Introducing the Visual Studio Code Private Marketplace: Your Team's Secure, Curated Extension Hub 🎉 Open Source AI Editor: Second Milestone A Unified Experience for all Coding Agents Expanding Model Choice in VS Code with Bring Your Own Key Introducing auto model selection (preview) Command GitHub's Coding Agent from VS Code Open Source AI Editor: First Milestone The Complete MCP Experience: Full Specification Support in VS Code VS Code: Open Source AI Editor Beyond the tools, adding MCP in VS Code Context is all you need: Better AI results with custom instructions February 2026 (version 1.110) Visual Studio Code 1.117 Visual Studio Code 1.118 Visual Studio Code 1.119 Visual Studio Code 1.120 The Coding Harness Behind GitHub Copilot in VS Code Visual Studio Code 1.122 Visual Studio Code 1.123 Building Long-Distance Next Edit Suggestions Visual Studio Code 1.125 Visual Studio Code 1.121 Visual Studio Code 1.124
Enhance productivity with AI + Remote Dev
Microsoft · 2021-11-03 · via Visual Studio Code - Code Editing. Redefined.

May 27th, 2025 by Brigit Murtaugh, Christof Marti, Josh Spicer, Olivia Guzzardo McVicker

One of the features that makes VS Code so flexible and powerful is Remote Development. Whether you're connecting to a secure VM from your local desktop, a hugely powerful computer from your tablet, or a containerized environment with all the dependencies your project needs – VS Code's ability to develop anything from anywhere can help in just about any setup.

Now combine those capabilities with the flexibility and power of AI in VS Code, and you have an incredibly versatile dev environment. You can ensure chat conversations have context about your remote workspace, get AI help in setting up and debugging remote connections, and provide a more isolated space for agent mode to work autonomously.

In this blog, we'll explore how your existing remote setups can be enhanced to "just work" with AI, along with some more customized AI + remote workflows that include custom instructions, chat participants, and agent auto-approvals.

What is Remote Development?

When we describe VS Code Remote Development, we refer to five main experiences:

  • Remote - SSH - Connect to any location by opening folders on a remote machine/VM using SSH.
  • Dev Containers - Work with a separate toolchain or container-based application inside (or mounted into) a container.
  • WSL - Get a Linux-powered development experience in the Windows Subsystem for Linux.
  • Remote - Tunnels - Connect to a remote machine via a secure tunnel, without configuring SSH.
  • GitHub Codespaces - Remote environments that are managed for you.

Remote architecture

How can you use AI in a remote environment?

We want to make the AI coding experience in VS Code as seamless as possible, whether you're working on your local machine or connected to a remote environment. If you're already using GitHub Copilot locally, we'll automatically install it remotely. And GitHub Codespaces has it configured too!

While using AI in a remote environment will just work, there are additional AI features that can make your remote workflow even more powerful:

  • Custom instructions - Tailor your AI experience for your remote environment
  • Chat participants - Use chat to set up and troubleshoot your remote environment
  • Tool approvals - Run autonomous coding sessions safely in remote environments

Tailor your AI experience for your remote environment

One of the top requests we hear from users when working with an LLM is: How can I help the LLM better understand my code and coding practices? You can achieve this via custom instructions, which describe common guidelines or rules to get responses that match your specific coding practices and tech stack. Instead of manually including this context in every AI chat query, custom instructions automatically incorporate this information with every chat request (learn more in our recent blog post).

In our team's recent self-hosting, we found it helpful to use custom instructions to not only tell Copilot about our code and coding practices, but to also provide more information about the type of remote environment we're connected to, such as:

  • What kind of remote environment is this (i.e. a dev container vs a VM)?
  • What languages or toolchains are installed? What's their purpose?
  • Where are toolchains installed (i.e. are they available on the PATH)?

Here's an example instruction our team found helpful:

This is a dev container that includes `python3` and `pip3` pre-installed and available on the `PATH`, along with the Python language extensions for Python development.

To get started with custom instructions in a remote environment, you can use the same instruction files remotely that you were already using locally.

Configure AI for your dev container

Dev containers make it easier to get started with a project by having all tools and dependencies preconfigured. By adding custom instructions, you can make sure that the LLM is tailored to that environment instead of providing generic answers. For example, a dev container for Python coding might have custom instructions about which tools are installed, or which coding guidelines to follow (as shared in the example above).

Our team has taken steps to preconfigure custom instructions to make your life even easier when using dev containers. We publish dev container resources (like images and Features) to ease the process of creating and connecting to dev containers, and we now include custom instructions in these files. Here’s an example of how you can use the custom dev container instructions our team added:

  • Create a new dev container configuration using one of our images or Features. You could do this by hand, or via the Dev Containers: Add Dev Container Configuration Files... command supplied by the Dev Containers extension:

    Dev Containers: Add Dev Container Configuration Files command in VS Code Command Palette

  • Follow the steps in the quick pick. For this example, we'll select the Python Template:

    Select Python 3 dev container config in VS Code Command Palette

  • Build and connect to your dev container in VS Code:

    VS Code notification to reopen project in dev container

  • The environment you've selected and are now connected to is based on our Python Template, which includes custom instructions via the Python Feature. Try chatting with Copilot within your dev container - Copilot automatically pulls the custom instructions from the Python image!

    AI chat using custom instructions

In addition to using the custom instructions we've added to images and Features, you can add additional custom instructions to the devcontainer.json in your projects - we've made it so that custom instructions can merge successfully across images and Templates. You can use the "github.copilot.chat.codeGeneration.instructions" setting, just like what we did in the Python dev container config described above.

If you publish any dev container configurations for others to use, we recommend exploring how you might add custom instructions to them! Here is an example of using custom instructions in a Python dev container Feature:

"github.copilot.chat.codeGeneration.instructions": [
    {
        "text": "This dev container includes `python3` and `pip3` pre-installed and available on the `PATH`, along with the Python language extensions for Python development."
    }
],

Use chat to set up and troubleshoot your remote environment

Chat participants enhance your chat experience by providing domain-specific knowledge, such as how to interact with a database or a specific API. Type @ in the chat input field to view and select from the list of available participants - they'll be available in Ask mode. There are several built-in chat participants like @workspace, @vscode, and @terminal. Extensions can also contribute chat participants.

The Remote - SSH extension includes a Copilot chat participant. Ask @remote-ssh for help configuring or troubleshooting elements of your remote environment:

Using Remote - SSH participant in VS Code chat panel

The participant is also knowledgeable about general SSH and remote development topics:

Asking Remote - SSH participant about remote auth

If a connection failure occurs, the Diagnose with Copilot feature provides a quick way to understand the problem:

Diagnose with Copilot option in notification

Copilot will investigate the issue and provide actionable insights:

Run autonomous coding sessions safely in remote environments

As part of completing the tasks for a user prompt, agent mode can run tools and terminal commands. Agent mode is powerful because it not only proposes code changes but can also run terminal commands and tools. For example, it can install project dependencies or run tests. However, some of these actions might be destructive, such as deleting files, modifying local configuration, and more. Therefore, you need to approve the use of tools and terminal commands in agent mode.

Agent mode tool approval options dropdown

In case you want to auto-approve all tools, you can now use the experimental chat.tools.autoApprove setting. To give you some level of protection against inadvertent terminal commands or tool calls, you can choose to only set this in a dev container or remote machine to prevent your local dev machine from getting affected:

Auto Approve tool setting in VS Code remote settings

This will auto-approve all tools, and VS Code will not ask for confirmation when a language model wishes to run tools. This can help save time by giving more autonomy to agent mode, but bear in mind that with this setting enabled, you will not have the opportunity to cancel potentially destructive actions a model wants to take.

Note that remote environments that are part of your local machine (like dev containers) or that have access to your credentials will pose different levels of risk.

What's Next

We're excited about the future of Remote Development and AI in VS Code. Our monthly releases are packed with exciting new features, and we're constantly looking ahead to what's next, like supporting Copilot Chat in the web (vscode.dev, github.dev).

Happy (smart and remote) coding! Brigit, Christof, Josh, and Olivia