![]() |
VOOZH | about |
dotnet add package GoesSoftware.SuperSDK.Editor --version 7.23.7
NuGet\Install-Package GoesSoftware.SuperSDK.Editor -Version 7.23.7
<PackageReference Include="GoesSoftware.SuperSDK.Editor" Version="7.23.7" />
<PackageVersion Include="GoesSoftware.SuperSDK.Editor" Version="7.23.7" />Directory.Packages.props
<PackageReference Include="GoesSoftware.SuperSDK.Editor" />Project file
paket add GoesSoftware.SuperSDK.Editor --version 7.23.7
#r "nuget: GoesSoftware.SuperSDK.Editor, 7.23.7"
#:package GoesSoftware.SuperSDK.Editor@7.23.7
#addin nuget:?package=GoesSoftware.SuperSDK.Editor&version=7.23.7Install as a Cake Addin
#tool nuget:?package=GoesSoftware.SuperSDK.Editor&version=7.23.7Install as a Cake Tool
Avalonia 编辑器组件库,提供 VSCode 风格的文件浏览器、代码编辑器、版本控制面板。
EditorFileSelectedMsg 消息EditorFileSavedMsg 消息)| 消息类型 | 发送方 | 接收方 | 用途 |
|---|---|---|---|
EditorFileSelectedMsg |
Explorer | Editor | 文件被点击时发出,Editor 自动打开 Tab |
EditorFolderChangedMsg |
Explorer(设置 RootPath 时) | Editor(清空 Tabs)、SourceControl(刷新 Git) | 文件夹切换广播 |
EditorFileSavedMsg |
Editor | SourceControl | 文件保存成功时发出,触发 Git 状态刷新 |
EditorDiffRequestMsg |
SourceControl | Editor | 请求以 Diff 模式展示文件变更 |
EditorEditModeMsg |
外部 | Editor | 切换回普通编辑模式 |
EditorGitRefreshMsg |
外部 | SourceControl | 手动请求刷新 Git 状态 |
| 分类 | 扩展名 |
|---|---|
| C# / .NET | .cs .csproj .sln .props .targets |
| 标记语言 | .xaml .axaml .xml .html .htm .svg |
| 数据 | .json .jsonc .toml .ini .cfg .conf .env .yml .yaml .csv .sql |
| Python | .py .pyw .pyi |
| Lua | .lua |
| Web | .js .mjs .ts .tsx .jsx .css .scss .less |
| Shell / 脚本 | .sh .bash .bat .cmd .ps1 .psm1 |
| 文档 | .md .txt .log |
| C / C++ | .cpp .c .h .hpp .cc |
| 其他语言 | .java .go .rs .rb .php .swift .kt .r .m |
| Git 配置 | .gitignore .gitattributes .editorconfig |
| 无扩展名文件 | 默认尝试作为文本加载 |
大文件限制:超过 5 MB 的文件不加载,仅显示路径信息。超过 100,000 行的文件只加载前 10 万行。
| 分类 | 示例 |
|---|---|
| 压缩包 | .zip .rar .7z .gz .tar |
| 可执行文件 | .exe .dll .so .dylib |
| 文档 / 富文本 | .pdf .docx .xlsx .pptx |
| 图片 | .png .jpg .gif .bmp .webp |
| 音视频 | .mp3 .mp4 .avi .wav |
| 数据库 | .db .sqlite .mdf |
<Window xmlns:editor="clr-namespace:SuperSDK.Editor.Controls;assembly=SuperSDK.Editor">
<Grid ColumnDefinitions="250,*,300">
<editor:GzExplorerBox Grid.Column="0" x:Name="Explorer" />
<editor:GzEditorBox Grid.Column="1" />
<editor:GzSourceControlBox Grid.Column="2" />
</Grid>
</Window>
// 方式一:直接设置属性(自动发出 EditorFolderChangedMsg)
Explorer.RootPath = @"C:\MyProject";
// 方式二:调用 API(等价于设置 RootPath,同样广播消息)
Explorer.SetFolder(@"C:\MyProject");
// 切换文件夹时:
// - Explorer 自动刷新文件树
// - Editor 自动清空所有已打开的 Tab
// - SourceControl 自动检测新目录的 Git 仓库并刷新状态
// 监听文件选择
MessageBus.Subscribe<EditorFileSelectedMsg>(this, msg =>
{
Console.WriteLine($"选中文件: {msg.FilePath}");
});
// 监听文件保存
MessageBus.Subscribe<EditorFileSavedMsg>(this, msg =>
{
Console.WriteLine($"文件已保存: {msg.FilePath}");
});
所有控件遵循 SuperSDK.UI 标准:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.23.7 | 102 | 5/22/2026 |
| 7.23.6 | 98 | 5/22/2026 |
| 7.23.5 | 97 | 5/13/2026 |
| 7.23.4 | 100 | 5/13/2026 |
| 7.23.3 | 94 | 5/13/2026 |
| 7.23.2 | 100 | 5/13/2026 |
| 7.23.1 | 96 | 5/12/2026 |
| 7.23.0 | 101 | 5/12/2026 |
| 7.21.0 | 96 | 5/12/2026 |
| 7.20.0 | 95 | 5/12/2026 |
| 7.19.1 | 102 | 5/11/2026 |
| 7.19.0 | 99 | 5/11/2026 |
| 7.18.0 | 106 | 4/30/2026 |
| 7.17.0 | 110 | 4/29/2026 |
| 7.16.2 | 106 | 4/14/2026 |
| 7.16.0 | 111 | 4/13/2026 |
| 7.15.10 | 102 | 4/13/2026 |
| 7.15.6 | 101 | 4/13/2026 |
| 7.15.5 | 104 | 4/12/2026 |
| 7.15.1 | 108 | 4/12/2026 |
docs(gotest-agent): add Profile file naming rule to engineer prompt