在实施的Visual Studio 2015年时,接口自动包围与#区域生成的代码 [英] Automatically surround generated code with #region when implementing interfaces at Visual Studio 2015
问题描述
我知道,在Visual Studio 2013和下方有开启/关闭自动在与
,但选择似乎在Visual Studio 2015年... #地区
生成代码周围工具的选项>选项>文本编辑器> C#>高级>环绕生成代码#地区
I know that in Visual Studio 2013 and below there is an option to turn on/off automatic surrounding of generated code with #region
at Tools > Options > Text Editor > C# > Advanced> Surround generated code with #region
, but that option seems to be removed in Visual Studio 2015...
被删除有没有办法把这个回来?
Is there a way to turn this back on?
推荐答案
您可能要考虑的 CodeMaid 在Visual Studio库。
根据说明:
You may want to look into CodeMaid at the Visual Studio Gallery. According to the description:
重新组织成员的布局在C#文件
按照微软的了StyleCop惯例,或者你自己的喜好。
自动生成的区域相匹配。在清理过程中需要或
自动运行。
Reorganize the layout of members in a C# file to follow Microsoft’s StyleCop convention, or your own preferences. Automatically generate regions to match. Run on demand or automatically during cleanup.
据我所知,这可能会给你想要的功能。
From what I can tell, this may give you the feature to want.
这篇关于在实施的Visual Studio 2015年时,接口自动包围与#区域生成的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!