我们可以使用VisualStudio或Resharper运行自定义脚本以进行代码清理吗?

发布于 2025-01-24 07:57:43 字数 321 浏览 2 评论 0原文

我想在Visual Studio中打印源代码时节省空间。是否可以使用visualStudio中的iSharper在 *.cs文件开头的命名空间语句与单行进行组合,或者使用一些可以使用Resharper Code Cleanup运行的脚本。我想

using System;
using System.Collections.Generic;
using System.Net;

被格式化为

using System;using System.Collections.Generic;using System.Net;

I want to save space while printing source code in visual studio. Is it possible to combine multiple using namespace statements at the beginning of *.cs file to single line using resharper in visualstudio, or using some script that can be run using Resharper code cleanup. I want

using System;
using System.Collections.Generic;
using System.Net;

to be formatted as

using System;using System.Collections.Generic;using System.Net;

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文