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で見る