简体   繁体   English

如果我输入“,”,如何删除 Visual Studio Code 自动完成建议?

[英]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:我为这个烦人的问题找到了一个肮脏的解决方法:

  1. uninstall or disable ms-toolsai.jupyter the official Microsoft extension for jupyter卸载或禁用ms-toolsai.jupyter的官方 Microsoft 扩展
  2. install the old deprecated jupyter extension 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.

相关问题 我怎样才能摆脱烦人的“import pdb; pdb.set_trace()”关于 Visual Studio Code Intellisense 的自动完成建议 - How can I get rid of annoying “import pdb; pdb.set_trace()” autocomplete suggestion on Visual Studio Code Intellisense Visual Studio代码无变量建议 - Visual studio code no variable suggestion 如何在 Visual Studio 代码中避免这种烦人的自动完成 - How to avoid this annoying autocomplete in visual studio code 如何在 Visual Studio Code 中禁用 Jupyter 笔记本的 Enter 键自动完成 - How to disable Enter key autocomplete for Jupyter notebooks in Visual Studio Code 如何为 Visual Studio Code (Python) 键入响应? - How to type responses for Visual Studio Code (Python)? 自动完成不适用于 Visual Studio Code 中的 Jupyter Notebook - Autocomplete Not Working for Jupyter Notebook in Visual Studio Code visual studio 代码中的建议在 python 中不起作用定义 function - suggestion in visual studio code doesn't work in python define function 如何在 Visual Studio Code 中正确突出显示 python 的类型提示? - How do I properly highlight type hints for python in Visual Studio Code? 在 ipython 中如何接受和使用自动完成建议? - in ipython how do I accept and use an autocomplete suggestion? 如何删除有关 Visual Studio Code 中不必要分号的警告? - How to remove warning about Unnecessary semicolon in Visual Studio Code?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM