Visual Studio 具有自动换行功能,但令人沮丧的是,它忽略了行缩进,使文本难以阅读。其他文本编辑器(Notepad++、Sublime Text)模拟换行的缩进,让代码更易阅读
如何使 Visual Studio 2012 智能换行?聪明?
在 Notepad++ 中看到,'of beer' 被包装,与 Console 一致
在 Visual Studio 中,“啤酒瓶”突出到缩进中,使代码形状难以阅读。
Visual Studio 具有自动换行功能,但令人沮丧的是,它忽略了行缩进,使文本难以阅读。其他文本编辑器(Notepad++、Sublime Text)模拟换行的缩进,让代码更易阅读
如何使 Visual Studio 2012 智能换行?聪明?
在 Notepad++ 中看到,'of beer' 被包装,与 Console 一致
在 Visual Studio 中,“啤酒瓶”突出到缩进中,使代码形状难以阅读。
好消息:在 Visual Studio 2013 中,自动换行正确地尊重缩进!
但是,它还存在许多问题(例如,围绕 Home/End 键)。请在https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/5574507-fix-behaviour-of-home-end-keys-when-word-wrap-is-e投票
唉,这是不可能的。在http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/3285423-wrap-lines-intelligently-simulating-indents-给 Visual Studio 开发人员的错误。请为它投票!
这个扩展做我想要的,但只适用于 Visual Studio 2010:/
http://visualstudiogallery.msdn.microsoft.com/ac95f80f-6cfd-4b67-b0fd-e9c5c8fb27de
注意。我尝试破解扩展清单以使其在 2012 年安装,但行为出现了问题。扩展需要真正的更新
对于 VS2012,有一个扩展 http://visualstudiogallery.msdn.microsoft.com/a5b5001e-fe7a-4c08-9cf5-96ae5892088a
它做同样的事情......