[英]Has anyone had this Resharper 2019 space problem in C#?
i installed Resharper 2019 in VS 2019, and as you see below, when a method takes a string as an input, it creates this weird space as you can see marked in red!我在 VS 2019 中安装了 Resharper 2019,如下所示,当一个方法将字符串作为输入时,它会创建这个奇怪的空间,如您所见,标记为红色!
has anyone had this issue?有没有人遇到过这个问题? do you know how it can be solved?你知道如何解决吗?
I think this could be the new Parameter Name Hints feature recently added to ReSharper.我认为这可能是最近添加到 ReSharper 的新参数名称提示功能。 You can configure this in Visual Studio under Extensions
-> ReSarper
-> Options...
-> Environment
-> Editor
-> Parameter Name Hints
您可以在 Visual Studio 中的Extensions
-> ReSarper
-> Options...
-> Environment
-> Editor
-> Parameter Name Hints
I am not sure why the font size is so big, maybe you are using a high DPI display or multiple displays and ReSharper is not playing nicely, I think the next version will address this.我不确定字体大小为何如此之大,也许您使用的是高 DPI 显示器或多个显示器,而 ReSharper 播放效果不佳,我认为下一个版本会解决这个问题。 If you have the 'Optimize rendering for screens with different pixel densities' option ticked in Visual Studio under Options
-> Environment
-> General
try unticking it.如果您在 Visual Studio 中的Options
-> Environment
-> General
下勾选了“为具有不同像素密度的屏幕优化渲染”选项,请尝试取消勾选它。
It is a bug in ReSharper 2019.1.x in presenting parameter hints.这是 ReSharper 2019.1.x 中显示参数提示的错误。 A workaround for this is mentioned in this request此请求中提到了解决方法
add the following line to GlobalSettingsStorage.DotSettings file (before
</wpf:ResourceDictionary>
) in %AppData%\\JetBrains\\Shared\\vAny:将以下行添加到 %AppData%\\JetBrains\\Shared\\vAny 中的 GlobalSettingsStorage.DotSettings 文件(在</wpf:ResourceDictionary>
):
<s:String
x:Key="/Default/Environment/IntraTextAdornmentsOptions/ScaleFactor/@EntryValue">0,8</s:String>
<s:String
x:Key="/Default/Environment/IntraTextAdornmentsOptions/ScaleFactor/@EntryValue">0,8</s:String>
-Edit: 0,8 can be 0.8 if you are using English US or UK Language on Windows. - 编辑:如果您在 Windows 上使用美国英语或英国语言,则 0,8 可以是 0.8。
Please note that this issue was fixed in ReSharper 2019.2 EAP .请注意,此问题已在ReSharper 2019.2 EAP 中修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.