更改了readme
Some checks failed
Monaco Editor checks / Monaco Editor checks (push) Failing after 35m27s

This commit is contained in:
mxwj 2024-11-15 14:36:00 +08:00
parent 018ff30de3
commit 499648a90b

160
README.md

@ -1,79 +1,141 @@
# Visual Studio Code - Open Source ("Code - OSS") 最后更改日期2024.11.01 00:41
[![Feature Requests](https://img.shields.io/github/issues/microsoft/vscode/feature-request.svg)](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc) 系统环境 win11家庭版
[![Bugs](https://img.shields.io/github/issues/microsoft/vscode/bug.svg)](https://github.com/microsoft/vscode/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3Abug)
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-yellow.svg)](https://gitter.im/Microsoft/vscode)
## The Repository 源码版本 1.96.0
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, 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). node版本 20.18.0 长期支持版
## Visual Studio Code python版本 3.10.4
<p align="center"> vs_BuildTools版本 2022
<img alt="VS Code in action" src="https://user-images.githubusercontent.com/35271042/118224532-3842c400-b438-11eb-923d-a5f66fa6785a.png">
</p>
[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). # 0 下载源文件
## Contributing 进入 https://github.com/microsoft/vscode
There are many ways in which you can participate in this project, for example: 使用git clone或者下载zip都行
* [Submit bugs and feature requests](https://github.com/microsoft/vscode/issues), and help us verify as they are checked in 注意:
* Review [source code changes](https://github.com/microsoft/vscode/pulls)
* Review the [documentation](https://github.com/microsoft/vscode-docs) and make pull requests for anything from typos to additional and new content
If you are interested in fixing issues and contributing directly to the code base, **源码需要在git仓库中才能跑完依赖**
please see the document [How to Contribute](https://github.com/microsoft/vscode/wiki/How-to-Contribute), which covers the following:
* [How to build and run from source](https://github.com/microsoft/vscode/wiki/How-to-Contribute)
* [The development workflow, including debugging and running tests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#debugging)
* [Coding guidelines](https://github.com/microsoft/vscode/wiki/Coding-Guidelines)
* [Submitting pull requests](https://github.com/microsoft/vscode/wiki/How-to-Contribute#pull-requests)
* [Finding an issue to work on](https://github.com/microsoft/vscode/wiki/How-to-Contribute#where-to-contribute)
* [Contributing to translations](https://aka.ms/vscodeloc)
## Feedback
* Ask a question on [Stack Overflow](https://stackoverflow.com/questions/tagged/vscode) 所以需要对项目文件夹执行:
* [Request a new feature](CONTRIBUTING.md)
* Upvote [popular feature requests](https://github.com/microsoft/vscode/issues?q=is%3Aopen+is%3Aissue+label%3Afeature-request+sort%3Areactions-%2B1-desc)
* [File an issue](https://github.com/microsoft/vscode/issues)
* Connect with the extension author community on [GitHub Discussions](https://github.com/microsoft/vscode-discussions/discussions) or [Slack](https://aka.ms/vscode-dev-community)
* Follow [@code](https://twitter.com/code) and let us know what you think!
See our [wiki](https://github.com/microsoft/vscode/wiki/Feedback-Channels) for a description of each of these channels and information on some other available community-driven channels. ```
git init
```
## Related Projects
Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the [node debug adapter](https://github.com/microsoft/vscode-node-debug) and the [mono debug adapter](https://github.com/microsoft/vscode-mono-debug) repositories are separate from each other. For a complete list, please visit the [Related Projects](https://github.com/microsoft/vscode/wiki/Related-Projects) page on our [wiki](https://github.com/microsoft/vscode/wiki).
## Bundled Extensions # 1 安装Node.js
VS Code includes a set of built-in extensions located in the [extensions](extensions) folder, including grammars and snippets for many languages. Extensions that provide rich language support (code completion, Go to Definition) for a language have the suffix `language-features`. For example, the `json` extension provides coloring for `JSON` and the `json-language-features` extension provides rich language support for `JSON`. 这里使用原生安装,设置好没有空格的安装路径后一路点继续
## Development Container
This repository includes a Visual Studio Code Dev Containers / GitHub Codespaces development container.
* For [Dev Containers](https://aka.ms/vscode-remote/download/containers), use the **Dev Containers: Clone Repository in Container Volume...** command which creates a Docker volume for better disk I/O on macOS and Windows. **警告:**
* If you already have VS Code and Docker installed, you can also click [here](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/microsoft/vscode) to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
* For Codespaces, install the [GitHub Codespaces](https://marketplace.visualstudio.com/items?itemName=GitHub.codespaces) extension in VS Code, and use the **Codespaces: Create New Codespace** command. **fnm在win11上需要配置poweshell有点麻烦故不使用。**
Docker / the Codespace should have at least **4 Cores and 6 GB of RAM (8 GB recommended)** to run full build. See the [development container README](.devcontainer/README.md) for more information. **nvm use <node版本> 实质上会复制一个你use的 <node版本>到C:/ [Program Files](C:\Program Files)而这个路径上的空格会引起node-gyp 错误导致安装依赖失败。**
## Code of Conduct
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## License # 2 安装 C/C++ compiler tool
Copyright (c) Microsoft Corporation. All rights reserved. 依照官网文档下载vs_BuildTools选择安装c++构建工具,
Licensed under the [MIT](LICENSE.txt) license. 然后进入“单个组件”安装:
- `MSVC v143 - VS 2022 C++ x64/x86 Spectre-mitigated libs (Latest)`(用于`ARM64`ARM 上的 Windows但可能仍然需要 x64/x86
- `C++ ATL for latest build tools with Spectre Mitigations`
- `C++ MFC for latest build tools with Spectre Mitigations`
官方bulid指南
https://github.com/microsoft/vscode/wiki/How-to-Contribute
# 3 配置 npm config
创建缓存文件夹例如npm-cache, 我这里选择在c盘根目录创建最后路径如下
```
C:\npm-cache
```
打开powershell输入
```
npm config edit
```
随后复制:
```
cache=C:\npm-cache
electron_builder_binaries_mirror=https://npmmirror.com/mirrors/electron-builder-binaries/
electron_mirror=https://cdn.npmmirror.com/binaries/electron/
msvs_version=2022
proxy=http://127.0.0.1:7890
registry=https://registry.npmjs.org
```
包括配置缓存electron源msvs路径配置代理最后选择官方源
# 4 安装依赖
挂好打理
使用:
```
npm ci
```
细心等待所以依赖安装完成截至文档第一次编写大概需要1500多个包
# 5 运行
如果安装依赖一切无误
运行
```
npm run watch
```
或者按下
Ctrl+ Shift+ B
等待编译完成
如果一切无误
vscode中按下 F5 即会出现目标程序
## 提交
vscode内部设置了验证不允许中文注释提交,使用以下语句以跳过验证
git commit -m "新建了一个 contrib Demo 成功创建图标到侧边栏" --no-verify