英文:
Eclipse 2023-06 suddenly no longer auto completing 'sysout'
问题
虽然我意识到此问题之前已经有人提问过,但我已经尝试了多个不同帖子中的解决方案,但迄今为止没有解决办法。
5天前,当我使用Eclipse时,一切都没有问题,但从今天开始,我突然无法使用“ctrl + space”自动完成“sysout”。
据我所知,Eclipse没有更新。
我已经浏览了“窗口 -> 首选项 -> Java -> 编辑器 -> 内容辅助 -> 高级”并确保没有选中任何干扰或冲突Eclipse能够自动完成Java命令的内容,然后重置为默认值。
我检查了“syso”是否是已列出且活动的模板。
我确保没有其他与“ctrl + space”冲突的键绑定。
窗口 -> ... -> 内容辅助 -> 高级
然而,我发现在关闭Eclipse然后重新打开它后,我可以自动完成“sysout”一次或两次,然后它停止并只是显示建议上下文菜单。
以下gif图未显示建议菜单的原因我无法捕获,但它绝对会出现,只有“System.out.println();”作为唯一选项:
尝试使用“sysout”快捷方式
英文:
While I recognize that this problem has been asked before, I have attempted solutions from multiple different threads with no solution as of yet.
5 days ago when I was using Eclipse I had no issues whatsoever, now as of today I suddenly cannot auto complete 'sysout' with 'ctrl + space'.
As far as I am aware, there were no updates to Eclipse.
I have gone through 'Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced' and ensured that nothing was checked that interfered or conflicted with Eclipse being able to auto complete the java command, then reset to defaults.
I checked that 'syso' was a listed and active template.
I made sure that there was not another keybind that was conflicting with 'ctrl + space'
Window -> ... -> Content Assist -> Advanced
Window -> Preferences -> General -> Keys
I did discover however that after I close Eclipse, and then open it back up, I can autocomplete 'sysout' once or twice, and then it stops and just pulls up the proposal context menu instead.
The below gif does not show the proposal menu for some reason and I couldn't get it to capture, but it most definitely shows up with 'System.out.println();' as the only option:
Attempting to use 'sysout' shortcut
答案1
得分: 1
尝试始终在“窗口 -> 首选项 -> Java -> 编辑器 -> 内容辅助 -> 高级”页面上恢复默认设置,如果这不能解决问题,请尝试禁用底部的非阻塞选项。这是该领域内一段时间内对整体行为的少数重大更改之一。
英文:
Always try restoring the defaults on the 'Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced' page, and if that doesn't fix it, try disabling that non-blocking option at the bottom. It's one of the few significant changes to the overall behavior in that area for a while.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论