INI Intellisense 是一个主要服务于《命令与征服:红色警戒2》 mod开发的功能强大的 Visual Studio Code 扩展,用于提高您在 .ini
配置文件上的工作效率。它提供高级功能,如语法高亮、悬停提示、诊断检查和折叠功能,帮助您更轻松地书写、阅读和维护 .ini
文件。
INI Intellisense is a powerful Visual Studio Code extension designed to enhance your workflow when working with .ini
configuration files. It provides advanced features such as syntax highlighting, hover tooltips, diagnostics, and folding, making it easier to write, read, and maintain .ini
files.
-
支持自定义颜色,用于区分键、值、括号和注释。
-
支持复杂语法,例如
[]:[]
节点、多层嵌套键和值、内联注释等。 -
Customizable colors for keys, values, brackets, and comments.
-
Supports complex patterns such as
[]:[]
sections, nested keys, and inline comments.
-
悬停在值上时显示关联的节注释或内联描述。
-
支持多行注释,并自动检测注释的正确位置。
-
Displays comments or descriptions associated with sections or values.
-
Supports multi-line comments, either above or inline with the section.
-
实时检查常见问题:
- 等号两侧的多余空格。
- 行首的多余空格。
- 注释前缺少空格。
- 注释后多余的空格。
-
Indicate common issues:
- Spaces around
=
(assignment operator). - Leading spaces at the beginning of lines.
- Missing spaces before comments (
;
). - Extra spaces after comments.
- Spaces around
-
支持基于节的折叠,包括复杂的
[]:[]
语法。 -
自动检测并管理嵌套的节范围。
-
Collapse sections based on their scope, including complex
[]:[]
syntax. -
Supports nested sections.
-
按住
Ctrl
并单击键或值,即可跳转到对应的节。 -
支持跨文件跳转到
.ini
节点。 -
Press
Ctrl
and click on a key or value to jump to its corresponding section. -
Works across the same or external
.ini
files.
- 克隆本仓库或下载
.vsix
文件。 - 在 VS Code 中安装扩展:
- 打开扩展面板(
Ctrl+Shift+X
)。 - 点击右上角的三点菜单,选择“从 VSIX 安装...”。
- 选择
.vsix
文件。
- 打开扩展面板(
- 重新加载 VS Code。
- Clone the repository or download the
.vsix
file. - Install the extension in VS Code:
- Go to Extensions (
Ctrl+Shift+X
). - Click on the three dots (
...
) at the top right and select "Install from VSIX...". - Choose the
.vsix
file.
- Go to Extensions (
- Reload VS Code.
打开 .ini
文件后,语法高亮会自动生效。
Open any .ini
file, and the syntax highlighting will be automatically applied.
悬停在值上以查看关联的节注释或内联描述。
Hover over a value to view its associated section comment or inline description.
编辑器中会实时标记问题,并显示详细错误信息。
Issues will be underlined with a red wavy line in the editor. Hover over the line to see a detailed error message.
按 Ctrl + 单击
键或值即可跳转到对应的节。
Ctrl + Click
on a key or value to navigate to its section.
点击节旁边的折叠图标以折叠或展开。
Click on the folding icon next to a section to collapse or expand it.
在 VS Code 设置文件(themes\settings.json
)中修改配色方案:
Modify the color scheme in your VS Code settings (themes\settings.json
):
本项目采用 MIT 许可证。详情请查看 LICENSE 文件。 This project is licensed under the MIT License. See the LICENSE file for details.