在 Visual Studio 2008 中保留换行的缩进

发布于 2024-07-12 02:23:51 字数 330 浏览 5 评论 0原文

在 Visual Studio 2008 中,有没有办法保持自动换行的长行的缩进? (仅 C# 需要它。)

打开自动换行后,它看起来像这样:

        var a = SomeFunctionOrWhateverWithSuperLongName(parameter1,
parameter2);

我希望它看起来像这样:

        var a = SomeFunctionOrWhateverWithSuperLongName(parameter1,
        parameter2);

我知道某些文本编辑器可以做到这一点。

In Visual Studio 2008, is there a way to keep the indentation of automatically wrapped long lines? (Only need it for C#.)

When word wrap is turned on, it looks like this:

        var a = SomeFunctionOrWhateverWithSuperLongName(parameter1,
parameter2);

I want it to look like this:

        var a = SomeFunctionOrWhateverWithSuperLongName(parameter1,
        parameter2);

I know some text editor can do this.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

智商已欠费 2024-07-19 02:23:51

一般来说,代码格式设置可以在 Tools -> 中更改。 选项-> 文本编辑器 -> [您的语言] -> 格式化

我相信普通 VS 不支持它。 但是,某些插件可能提供此功能。

Generally, code formatting settings can be changed at Tools -> Options -> Text Editor -> [Your Language] -> Formatting.

I believe it's not supported under plain VS. However, some addins might provide this feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文