简体   繁体   English

有没有人在 C# 中遇到过这个 Resharper 2019 空间问题?

[英]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.

相关问题 有没有人遇到过10Gen支持的c#驱动程序的问题 - Has anyone had issues with the 10Gen supported c# driver 有没有人在C#网络表单上成功实现maxmind的免费GeoLiteCity数据库? - Has anyone had success implementing maxmind's free GeoLiteCity DB on a C# webform? 任何人都能解释这个有趣的C#问题吗? - Can anyone explain this interesting C# problem? ReSharper / C#中的“代理减法具有不可预测的结果”? - “Delegate subtraction has unpredictable result” in ReSharper/C#? 从 Visual Studio 2019 中的 C# 解决方案返回 cmake 项目时,Resharper 智能感知停止工作 - when going back to cmake project from C# solution in visual studio 2019 Resharper intellisense stops working ReSharper和C#反射 - ReSharper and the C# reflection 单元测试在 Visual Studio 中随机停止工作。 有没有其他人遇到过这个问题,如果有,我该如何解决? - Unit testing randomly stops working in Visual Studio . Has anyone else had this problem, and if so how do I fix it? 空格字符/流写入器问题 C# - space character / streamwriter problem C# 已解决 VisualStudio 2019 表单显示问题 c# - RESOLVED VisualStudio 2019 form display problem c# Visual Studio 2019 编译和处理代码中的问题 (C#) - Visual Studio 2019 Problem in Compile & Proccess Codes (C#)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM