Skip to main content

normalize-line-endings

Execute a C# script to normalize line endings in files within a specified directory.

来源信息

仓库
DGP-Studio/Snap.Nicole
最近来源活动
2026年6月4日 07:15
检测到的 SKILL.md 语言
英语
星标
14
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
normalize-line-endings
description
Execute a C# script to normalize line endings in files within a specified directory.
Different agent prefer different line endings (LF vs CRLF). This script helps ensure that all files in a directory have consistent line endings, which can be important for version control. You may run a simple C# script that recursively traverses the specified directory for files and normalizes the line endings of each file using `String.ReplaceLineEndings()`. The script is inside `./scripts/normalize.cs` and can be run in most CLI environments. It is generally acceptable to use a broader directory scope than you expect, since the script only modifies files with inconsistent line endings. ## Usage Run in PowerShell: ```powershell dotnet run .\normalize.cs -- <target path> ``` Example: ```powershell dotnet run .\normalize.cs -- C:\Projects\MySolution ```
在 GitHub 查看