【文件属性】:
文件名称:editorconfig-core-net:用C#编写的.NETMono http的EditorConfig核心库和命令行实用程序
文件大小:76KB
文件格式:ZIP
更新时间:2021-05-24 13:29:42
C#
.NET Core编辑器
EditorConfig .NET核心提供与和相同的功能。
安装
该库在nuget上的存在方式为:
nuget install editorconfig
.NET核心工具位于以下位置:
dotnet tool install editorconfig-tool
用法
用作库:
var parser = new EditorConfigParser ();
var configuration = parser . Parse ( fileName );
foreach ( var kv in configuration . Properties )
{
Console . WriteLine ( " {0}={1} " , kv . Key , kv . Value );
}
用作命令行工具:
如果将其安装为全局工具,则可以省略dotnet