Nai.AvalonEdit 1.1.1

dotnet add package Nai.AvalonEdit --version 1.1.1
                    
NuGet\Install-Package Nai.AvalonEdit -Version 1.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Nai.AvalonEdit" Version="1.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nai.AvalonEdit" Version="1.1.1" />
                    
Directory.Packages.props
<PackageReference Include="Nai.AvalonEdit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nai.AvalonEdit --version 1.1.1
                    
#r "nuget: Nai.AvalonEdit, 1.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Nai.AvalonEdit@1.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nai.AvalonEdit&version=1.1.1
                    
Install as a Cake Addin
#tool nuget:?package=Nai.AvalonEdit&version=1.1.1
                    
Install as a Cake Tool

Nai.AvalonEdit 是一个通用、开箱即用的 C# 代码编辑器控件库(基于 ICSharpCode.AvalonEdit 与 NRefactory),提供语法高亮、代码折叠、智能补全(点号触发 / Ctrl+Space)、方法参数提示、搜索面板(Ctrl+F)、CSharpier 代码格式化(Ctrl+Alt+F)、跳转到行(Ctrl+G)与 Ctrl+滚轮缩放字号。内含 NRefactory 与 Mono.Cecil,安装即用。

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.1 0 11/30/2026

v1.1.1
* 默认使用 Roslyn 语法树折叠 C# 代码,避免注释和字符串中的花括号误判,支持嵌套 #region。
* Ctrl+G 对话框按 CurrentUICulture 显示中文,其他语言回退到英文。

v1.1.0
* 新增 Ctrl+G 跳转到行:弹出「跳转到行」对话框(深色风格对齐 Raven),确认后滚动视图并把光标移到目标行行尾
* 新增 GoToLineWindow 对话框与 CodeTextEditor.GoToLine(int) / ShowGoToLineDialog() 公开 API,宿主可自行调用或完全接管

v1.0.0
首个版本。由 Project_Raven 解决方案中的 ICSharpCode.AvalonEdit 与 ICSharpCode.CodeCompletion 两个项目合并、修改而成:
* 合并为单一程序集 Nai.AvalonEdit.dll,支持 net472 与 net6.0-windows
* 包内自带 NRefactory 5.0 与 Mono.Cecil 0.9.5.4,安装即用,无需额外引用
* CodeTextEditor 开箱即用:默认 C# 语法高亮、行号、Consolas 字体、代码折叠、搜索面板
* 代码补全:点号成员补全、Ctrl+Space 全量补全、方法参数提示
* SearchPanel.Install / FoldingManager.Install 幂等化,重复安装不再产生重复 UI
* 修复 offset=0(光标在文档开头)时补全会抛异常的问题
* CSharpCompletion 在 .NET (Core) 下自动加载 System.Runtime 等实现程序集,使 BCL 成员补全可用
* XML 文档查找支持多个 .NET Framework 参考程序集目录
* 默认样式对齐 Raven:浅灰背景、18 号 Consolas、2 空格缩进、显示空格与换行标记
* 内置 Ctrl+鼠标滚轮缩放字号(12~42,可配置)
* 内置 CSharpier 代码格式化:CodeTextEditor.FormatDocument() 与 Ctrl+Alt+F,失败时保留原文,可用一次 Ctrl+Z 撤销
* 新增 CSharpier.Core 依赖(0.30.2,与 Raven 一致)