简体   繁体   English

VS2022 - 输入问题

[英]VS2022 - Input issues

Either something has come undone in my brain overnight, or there has been a change to my instance of Visual Studio that I made by accident.要么是某事在一夜之间在我的大脑中被撤销,要么是我无意中对我的 Visual Studio 实例进行了更改。 I was running v17.3.1 and just updated to v17.3.4 to see if it would fix the issue, but it has not.我正在运行 v17.3.1 并且刚刚更新到 v17.3.4 以查看它是否可以解决问题,但它没有。

For the last few years of pushing out lines of sub-optimal code, I have gotten a space when I pressed the spacebar and a period when I push the period button.在推出次优代码行的过去几年中,当我按下空格键时,我得到了一个空格,当我按下句号按钮时,我得到了一个句号。 I use intellisense a great deal, to the point that when I want to log something, I type logger.in[tab] and I get logger.LogInformation written, waiting for me to type what I want logged.我经常使用智能感知,以至于当我想记录某些内容时,我输入logger.in[tab]并写入logger.LogInformation ,等待我输入我想要记录的内容。

This morning, my code was way worse than usual.今天早上,我的代码比平时糟糕得多。 I wasn't getting spaces or periods being typed to the screen.我没有在屏幕上输入空格或句号。 Initially, I thought it was my keyboard, but a quick test showed that my keyboard was fine.起初,我以为是我的键盘,但快速测试表明我的键盘没问题。 Then I noticed that when I would press either the period or spacebar buttons, the intellisense would complete the selection but not insert the space or the period.然后我注意到,当我按下句点或空格键时,智能感知会完成选择,但不会插入空格或句点。

Even trying to create a new variable is painful.即使尝试创建一个新变量也是痛苦的。 Typing string[space]myString leaves me with stringmyString in the IDE.键入string[space]myString会在stringmyString中留下 stringmyString。

Double tapping the space or period button feels really unnatural to me.双击空格或句号按钮对我来说真的很不自然。 Does anyone know what options I may have accidently changed, or how I can get it back to how it was working yesterday?有谁知道我可能意外更改了哪些选项,或者我怎样才能让它恢复到昨天的工作方式?

Thanks in advance.提前致谢。

EDIT: I thought I had fixed it with Edit -> Intellisense -> Switch between automatic and tab-only Intellisense completion , but then I had to double click on the autocomplete that I wanted for it to insert it.编辑:我以为我已经用Edit -> Intellisense -> Switch between automatic and tab-only Intellisense completion修复了它,但后来我不得不双击我想要插入它的自动完成。

You can open the visual studio installer and Repair the VS it will solve the problem.您可以打开 Visual Studio 安装程序并修复 VS 它将解决问题。

The new version of the extension "Progress Telerik UI for Blazor" (2022.3.921.3) fixed this issue.新版本的扩展“Progress Telerik UI for Blazor”(2022.3.921.3)修复了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM