.NET Interactive-如何更改收集输出大小
我正在使用.NET Interactive Notebook内部VS代码,并想更改打印的元素数:
var x = Enumerable.Range(0,21);
x.Display();
输出中仅显示了前20个元素:
我可以以某种方式增加输出的大小吗?
I'm using .NET Interactive notebook inside VS Code and want to change the number of printed out elements:
var x = Enumerable.Range(0,21);
x.Display();
Only first 20 element are shown in the the output:
Can I somehow increase the size of output?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从
Microsoft.dotnet.intractive.formatting
命名空间使用formatter
更改输出的大小:docs :
form> form> formatter.listexpansionlimit
20 <20 <20 < /p>获取或设置将从
iEnumerable
sequence中详细编写的项目数量的限制。formatter&lt; t&gt; .listexpansionlimit
=(未设置)可选类型的特定列表扩展限制
You can use
Formatter
fromMicrosoft.DotNet.Interactive.Formatting
namespace to change the size of the output:Docs:
Formatter.ListExpansionLimit
= 20Gets or sets the limit to the number of items that will be written out in detail from an
IEnumerable
sequence.Formatter<T>.ListExpansionLimit
= (not set)An optional type-specific list expansion limit