.BLOCKS 文件扩展名
MakeCode Project Blocks Description
| 开发者 | Microsoft |
| 受欢迎程度 |
3.0 | 1 票 |
什么是 BLOCKS 文件?
A main.blocks file is a portion of a Microsoft MakeCode project. It contains XML data that describes the project's code blocks. Main.blocks is one of four primary MakeCode project files.
更多信息
Microsoft MakeCode is a free online platform that students use to create simple programs. Primarily, MakeCode allows amateur developers to create programs using block-based code editing tools. (Developers can also code in JavaScript.)
By default, MakeCode saves users' projects to their web browser's local storage. These project directories contain at least the four following basic project files:
- Main.ts: Contains the project's JavaScript source code
- Main.blocks: Describes the attributes and positions of the project's blocks
- Pxt.json: Contains project dependency information
- README.md: Contains readme information
However, developers who use MakeCode's save to GitHub feature are most likely to encounter these project files. After saving their project to GitHub, developers can examine each of the constituent files the project contains.
常见 .BLOCKS 文件名
Main.blocks - The name Microsoft MakeCode assigns to BLOCKS files.
如何打开 BLOCKS 文件
You can open and edit a main.blocks file with Microsoft Visual Studio Code (multiplatform) or any other text editor. However, keep in mind that editing a main.blocks file may cause the MakeCode project that uses it to function incorrectly. In most cases, you should open MakeCode projects and edit their code directly in Microsoft MakeCode (Web).