java Visual Studio代码-键入时滞后

gkl3eglg  于 2023-02-18  发布在  Java
关注(0)|答案(7)|浏览(125)

I have just installed Visual Studio Code together with the Java Extension Pack. However, when I opened my first file and started typing, the text I type appears after a delay - reaching up even one second.
I have a hunch that it might be due to the number of processes going behind the editor, like real-time syntax checking, autocompletion, code hints et cetera. Perhaps the laptop I am working at simply cannot handle that much. These are the parameters of my current machine:
Processor: Intel(R) Caleron(R) CPU N3350 (1.10 GHz)
RAM: 4 GB
I have another hunch that it may be due to the processor.
So, are there a ways to switch off these facilities like real-time error-checking? If not, what other IDEs for Java could you reccomend? (Apart from Eclipse)

fkvaft9z

fkvaft9z1#

在使用 *Android Studio沿着后台的Android模拟器 * 时,使用Visual Studio代码也遇到了同样的问题,我运行 8GB RAM 和 * 3.2GHz的CPU *,但当我返回记事本++(我知道这是自杀)时,为了检查这是我的问题还是IDE的原因,我真实的输入。
这是由于您的处理器,因为VisualStudio代码并不真正推荐用于“慢”CPU。就我个人而言,我喜欢它,尽管像VIM这样的IDE可能更适合您。
以下链接可能会给予更多提示:https://github.com/Microsoft/vscode/issues/38409

w8biq8rn

w8biq8rn2#

我找到的最简单的解决方案是下载并安装Visual Studio Code Insiders。它几乎是相同的,除了它的延迟更少。安装它还将清除您启用的可能导致延迟的任何扩展或首选项:
https://code.visualstudio.com/insiders/
您可能还需要使用--disable-gpu标志从命令行运行它

code-insiders --disable-gpu

/Applications/Visual\ Studio\ Code\ -\ Insiders.app/Contents/MacOS/Electron --disable-gpu

取决于您的操作系统

u0njafvf

u0njafvf3#

尝试以下步骤:

  • 禁用任何不必要的扩展。
  • 更新为稳定版本。

如果此操作仍不起作用,请尝试重新安装Visual Studio Code示例。

myzjeezk

myzjeezk4#

我也一样,我经常让计算机休眠,而不是关闭并杀死所有进程,所以对我来说,VS打开几天是正常的,解决方案是关闭Visual Studio并重新打开它。

scyqe7ek

scyqe7ek5#

也许是电脑性能的问题,我用的是笔记本电脑。
昨天我卸载了一个大程序(MS SQL服务器)
现在打字速度恢复正常。

7ajki6be

7ajki6be6#

这个问题我现在已经有好几次了,其实我现在才有,解决我的就是
1.关闭VS代码
1.从我的任务栏取消固定
1.把它别回去
从那以后效果很好。
关闭和重新打开VS代码从来没有为我工作过

envsm3lx

envsm3lx7#

请从Pivotal禁用Spring Boot Tools!!!

这个扩展不能很好地与其他Java扩展一起工作。(例如,Java的扩展包和Java的语言支持)
禁用后,我看到了显着的速度增加与智能感知,和CPU负荷减少的结果。请摆脱的东西!!!

相关问题