OpenSource-Hub

vscode

应用程序

microsoft/vscode

VS Code 是微软开发的跨平台开源代码编辑器。

项目简介

Visual Studio Code 结合了代码编辑器的简洁性和强大的开发功能,如调试、任务运行和版本控制。它基于 Electron 构建,并支持丰富的扩展生态系统。

README 预览

# Visual Studio Code - Open Source ("Code - OSS")
[](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
[](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug)
[](https://gitter.im/Microsoft/vscode)

## The Repository

This repository ("`Code - OSS`") is where we (Microsoft) develop the [Visual Studio Code](https://code.visualstudio.com) product together with the community. Not only do we work on code and issues here, but we also publish our [roadmap](https://github.com/microsoft/vscode/wiki/Roadmap), [monthly iteration plans](https://github.com/microsoft/vscode/wiki/Iteration-Plans), and our [endgame plans](https://github.com/microsoft/vscode/wiki/Running-the-Endgame). This source code is available to everyone under the standard [MIT license](https://github.com/microsoft/vscode/blob/main/LICENSE.txt).

## Visual Studio Code

  

[Visual Studio Code](https://code.visualstudio.com) is a distribution of the `Code - OSS` repository with Microsoft-specific customizations released under a traditional [Microsoft product license](https://code.visualstudio.com/License/).

[Visual Studio Code](https://code.visualstudio.com) combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.

Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on [Visual Studio Code's website](https://code.visualstudio.com/Download). To get the latest releases every day, install the [Insiders build](https://code.visualstudio.com/insiders).

## Contributing

There are many ways in which you can participate in this project, for example:

* [Submit bugs and feature requests](https://github.com/microsoft/vsc

常见问题 (4)

故障排除
如何修复在VS Code 1.121.0更新后,Windows Server 2022上Remote-SSH服务器安装失败的问题?

这是VS Code 1.121.0版本中的一个已知问题。解决方法:降级至VS Code 1.120.0,或手动删除Windows Server主机上的远程服务器文件夹(例如~/.vscode-server或%USERPROFILE%\\.vscode-server),然后重新连接以触发全新安装。请关注官方问题#318239以获取永久修复。

来源 Issue #318239
故障排除
如何在macOS上修复VS Code 1.123.0 Remote-SSH连接错误'connect EINVAL'?

这是版本1.123.0中的一个已知回归问题。临时解决方案:降级到1.122.0,使用Insiders构建版本,或清理远程服务器的.vscode-server文件夹并重新连接。关注问题#319752以获取永久修复。

来源 Issue #319752
故障排除
为什么我的带有applyTo的.instructions.md文件没有被注入到GitHub Copilot上下文中?

这是 GitHub Copilot Chat v0.45.1+ 中的一个已知缺陷:由 applyTo globs 匹配的指令文件不会自动注入。相反,它们会作为带有读取指令的元数据出现,迫使代理手动调用 read_file。解决方法:(1)在 .github/copilot-instructions.md 中添加一条规则,告诉代理始终读取匹配的指令文件,例如“在编辑任何文件之前,检查相关的 .instructions.md 文件并读取它们”。(2)将关键指令直接移到 copilot-instructions.md 中,但注意其大小限制。(3)在提示中显式使用 #file: 语法引用指令文件。关注 issue #314894 以获取更新。

来源 Issue #314894
security advisory
VS Code 是否容易受到 webview 内容注入键盘快捷键的影响?

此漏洞不影响 VS Code Desktop,仅影响 VS Code web 客户端(例如 GitHub Codespaces、vscode.dev)。微软正在部署修复程序。在此期间,请避免在 VS Code web 中打开不受信任的笔记本或网页内容。桌面用户无需采取任何操作。

来源 Issue #319593