# Version 21.5 新增特性

2022年2月15日

## 一般新增功能

- 添加了可视化**隐形**、**控制**和/或**代理项字符**的功能，这可能会导致潜在的安全问题。字符范围是可自定义的。此外，新版本可以选择在文件保存之前立即检查这些字符。
- 增强了 **查找下一个 Unicode 字符**以及**查找上一个 Unicode 字符**命令以包括查找警告字符的能力。
- 新版本支持 **[EditorConfig](https://editorconfig.org/)**。此版本支持以下属性：**[indent_style](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#indent_style)**，**[indent_size](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#indent_size)**，**[tab_width](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#tab_width)**，**[end_of_line](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#end_of_line)**（保存时），**[charset](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#charset)**（保存时），**[trim_trailing_whitespace](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#trim_trailing_whitespace)**（保存时），**[insert_final_newline](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#insert_final_newline)**（保存时），以及 **[max_line_length](https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#supported-by-a-limited-number-of-editors)**。
- 添加了 **/csv** 到**命令行选项**。
- 当鼠标悬停在工具栏按钮上时，新版本会在状态栏中显示描述。
- 提高了全部替换后撤消的速度。

### 测试结果：

|                                              |  v21.4  |  v21.5  |    比较    |
|----------------------------------------------|---------|---------|------------|
| 撤销（在用“@”替换所有“a”之后，不匹配大小写） | 7.91 秒 | 2.58 秒 | 快 3.07 倍 |

1.34 GB，1 亿行，随机 ASCII 数据。默认选项，单线程；操作系统：Windows 11，Core i9-11900K，64GB RAM，2TB SSD。

### 新增选项

- 添加了**字符检查**页面到配置属性对话框中。
- 添加了 **字符范围**对话框到配置属性中的**字符检查**页面上。
- 添加了 **使用 .editorconfig** 选项到**自定义**对话框的**编辑**页面让您可以选择是否要支持 **EditorConfig**。
- 添加了**确保每个文件末尾都有换行符**选项到**保存详细信息**对话框中。
- 添加了**警告字符**项目到配置属性中的**显示**页面上的**指定部分**列表框中。

```gallery
images:
- src: /media/2022/02/char_check-uxuuj6l5-2.webp
  caption: 添加了“字符检查”页面到配置属性对话框中。
- src: /media/2022/02/char_range-ox4ls227.webp
  caption: 添加了 “字符范围”对话框到配置属性中的“字符检查”页面上。
- src: /media/2022/02/use_editorconfig-ga2vehuo-2.webp
  caption: 添加了 “使用 .editorconfig” 选项到“自定义”对话框的“编辑”页面让您可以选择是否要支持 “EditorConfig”。
- src: /media/2022/02/save_details_ensure_newline_eof-3pq46rzt-2.webp
  caption: 添加了“确保每个文件末尾都有换行符”选项到“保存详细信息”对话框中。
- src: /media/2022/02/prop_display_warning_char-yhiwcwx2-2.webp
  caption: 添加了“警告字符”项目到配置属性中的“显示”页面上的“指定部分”列表框中。
```

### 新增命令

- 字符检查属性

### 插件的新增功能

- 添加了 **EI_GET_SUM** 参数到 **EE_INFO** 消息中。

### 新增宏功能

- 改进了 **Sum.jsee** 宏以在筛选时从总和中排除隐藏的行。
- 将 **eeColorInvalidCharacters** 索引添加到 **DisplayList** 的 **Item** 属性集合中。
- 添加了 **Sum** 和 **Average** 屬性到 **Selection** 对象中。
