更新时间:2021-11-27 02:30:19
我们偶然发现了这个帖子,感觉我们可以制作这是Shift + Enter(SmartBreakLine)的一个很好的改进。
We stumbled on this thread and it felt like we could make a nice improvement here to Shift+Enter (SmartBreakLine).
因此,在打开一个块的情况下 {}
并且如果 shift
被有意或无意地扣押,我们现在这样做:
So, in cases where a block was opened { }
and if shift
was held down intentionally or unintentionally, we now do this:
{
|
}
而不是
{ }
|
这种方式习惯使用shift +输入来完成该行(在C#中,它添加了如果需要,在行尾添加分号,格式化行,在当前行之后添加新行)不必通过将快捷方式重新映射到BreakLine来丢失这些功能。
this way people who are used to using shift+enter to complete the line (in C#, it adds a semicolon to the end of line if needed, formats the line, adds a new line after current line) do not have to lose those functionalities by remapping the shortcut to BreakLine.
请参阅: https://github.com/dotnet/roslyn/pull/5790
这应该在Vs2015的下一次更新中进行,我们希望你喜欢它。
this should make it in the next update of Vs2015 and we hope you like it.