visual-studio - Visual Studio 在键盘上运行缓慢、键盘延迟和从键盘输入中随机重复击键

标签 visual-studio performance input keyboard

当我在 Visual Studio 中输入时,键盘输入被重复了。

例如:如果我输入 return 它会以 rreturnretturn 结束

ex2:当按下退格键时,它有时会删除 2 个空格而不是 1 个。

ex3:按下 SHIFT + 9 应该会产生 ' ) ' 但会产生 '9' 就好像我没有按下 SHIFT 键一样。

打字也很慢,我打字的速度比编辑器中回显的字符快。
这不仅发生在编辑器中,而且发生在其他任何地方,即。在属性中键入一些内容,例如链接器输入,或任何需要键盘输入的对话框。键入滞后并重复击键。

到目前为止我尝试过的事情:

Tools > options > environment > automatically adjust visual experience... toggle on and off as well as 2 checkboxes below toggling on and off.
Tools > options > text editor > all languages > disable codelens
Tools > options > environment > international settings > same as MS Windows
Tools > options > source control > set to none
setting up precompiled headers
disabling all extension, run devenv in safe mode
tools > options > text editor > C/C++ > experimental > disable code analysis.
reinstalling Visual Studio and OS

什么都行不通。

Visual Studio 2017 v15.9.9/
Windows 10 专业版 x64

到目前为止,键盘在其他程序中工作得很好。

编辑:
禁用智能感知解决了问题,但没有编码是不可能的,是否有任何选项可以加速智能感知?显然问题是智能感知。

最佳答案

我了解到问题的原因是什么,这是智能感知。

如何加快智能感知...

这是Windows 8和10随附的MS Defender降低了智能感知能力。

将以下进程和文件夹添加到安全中心的排除列表中可加快智能感知:

1. Microsoft.ServiceHub.Controller.exe
2. ServiceHub.Host.CLR.x86.exe
3. ServiceHub.IdentityHost.exe
4. ServiceHub.SettingsHost.exe
5. ServiceHub.VSDetouredHost.exe
6. vcpkgsrv.exe
7. VcxprojReader.exe
8. Entry folder containing your project files

如果您使用不同的 AV,那么只需将这些进程放在您的 AV 设置中的排除列表中。

以下是有助于加速 VS 和智能感知的步骤:
Tools > options > environment > automatically adjust visual experience set to off and toggle on "enable rich client visual experience"
tools > options > text editor > C/C++ > advanced > Code analysis > disable code analysis.
Tools > options > text editor > all languages > codelens > disable codelens
Tools > options > environment > international settings > same as MS Windows
Tools > options > source control > set to none
Tools > manage extensions > disable extensions
set up precompiled headers for each project

编辑:
如果上述方法长时间不起作用(就像我的情况一样),请关闭 Windows Defender 实时保护服务。
这确实使VS和智能感知立即做出响应。

关于visual-studio - Visual Studio 在键盘上运行缓慢、键盘延迟和从键盘输入中随机重复击键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55203565/

相关文章:

c# - .NET 转到 NuGet 包的实现

c++ - 模拟练习的时间复杂度

c - openmp 比一个线程慢,无法弄清楚

javascript - 如何根据输入的内容更改输入的标题?

javascript - 使用 html 输入重新加载文件

c# - 适用于 Windows 的 Webview 应用程序

visual-studio - MSBuild:如何从 AssmeblyInfo.cs 读取程序集版本和文件版本?

.net - 使用强名称工具在 .NET 中创建强名称

performance - 从性能角度来看 MongoDB 嵌入式与引用

c++ - 捕获 ListView 控件上的键盘输入,C++