百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

ConsoleTableExt

> 编程语言
开源

一个流利的库,在控制台应用程序 C# 中打印一个格式良好的表格

347 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个流利的库,在控制台应用程序 C# 中打印一个格式良好的表格

ConsoleTableExt

A library to print out a nicely formatted table in a console application C#

Nuget

https://www.nuget.org/packages/ConsoleTableExt/

Feature

  • Support box-drawing characters
  • Table alignment (left right and center)
  • Column alignment (left/right/center)
  • Table can have TITLE, can change text color and background color of title, support title alignment (left/right/center)
  • Support power char-map, strong customization ability
  • Contain some popular formas like Markdown table...
  • Support text formatter (include header)
  • Support many kind data type: DataTable, List...
  • Support metadata row (placed at top or bottom of table)
  • Column min-length
  • support .NET Framework >= 3.5, .NET core
  • ...

How to use:

csharp
var tableData = new List>
{
    new List{ "Sakura Yamamoto", "Support Engineer", "London", 46},
    new List{ "Serge Baldwin", "Data Coordinator", "San Francisco", 28, "something else" },
    new List{ "Shad Decker", "Regional Director", "Edinburgh"},
};

Simple example with default format:

csharp
ConsoleTableBuilder
    .From(tableData)
    .ExportAndWriteLine();

More example with existing format Alternative:

csharp
ConsoleTableBuilder
    .From(tableData)
    .WithFormat(ConsoleTableBuilderFormat.Alternative)
    .ExportAndWriteLine(TableAligntment.Center);

Advance example with custom format using CharMap:

…

Check more demo here https://github.com/minhhungit/ConsoleTableExt/blob/master/Src/ConsoleTableApp/Program.cs

Char Map Definition

Header Char Map

There are many ways to contribute to ConsoleTableExt, either contribute issue/code directly or buy me a cup of coffee

Inspired by

  • khalidabuhakmeh/ConsoleTables

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#consoleconsole-tablefluenttext-table

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言