[英]How to remove Visual Studio Code autocomplete suggestion if I type ","?
I am programming in jupyter using Visual Studio Code, but every time I type ","(comma) I get autocomplete suggestions.我正在使用 Visual Studio Code 在 jupyter 中编程,但是每次我输入“,”(逗号)时,我都会收到自动完成建议。 This is really annoying when writing dictionaries for example.例如,在编写字典时这真的很烦人。 I have tried to solve it by going through every single option in settings>User>Text Editor>Suggestions and the only solution I could find was to disable the "Suggest on Trigger Characters".我试图通过设置>用户>文本编辑器>建议中的每个选项来解决它,我能找到的唯一解决方案是禁用“建议触发字符”。 This unfortunately also disables autocomplete suggestions when I type "."(period) which i want to keep.不幸的是,当我输入我想保留的“.”(句点)时,这也会禁用自动完成建议。 Is there any way to disable only ","(comma) as a Trigger Character?有没有办法只禁用“,”(逗号)作为触发字符?
I found a dirty workaround for this annoying problem:我为这个烦人的问题找到了一个肮脏的解决方法:
ms-toolsai.jupyter
the official Microsoft extension for jupyter卸载或禁用ms-toolsai.jupyter
的官方 Microsoft 扩展donjayamanne.jupyter
安装旧的已弃用的 jupyter 扩展donjayamanne.jupyter
In this way you have autocomplete for functions and for the '.'
通过这种方式,您可以自动完成函数和'.'
, but not for the ','
comma. , 但不适用于','
逗号。 This can work for you, until the source of the problem found and resolved.这对您有用,直到找到并解决问题的根源。
Edit: The bug is reported on github and it has a work in progress status in the Jupyter: Iteration Plan for November 2021编辑:该错误已在github上报告,并且在Jupyter:2021 年 11 月的迭代计划中处于进行中状态
根据https://github.com/microsoft/vscode-jupyter/issues/7880#issuecomment-958594302 ,回滚到 v2021.8.1236758218 可以消除问题,直到问题得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.