简体   繁体   English

VSCode Python 在自动完成 class 名称时删除括号

[英]VSCode Python remove parenthesis while auto completing a class name

When I try auto complete my Class name in vscode, the parenthesis also coming with Class name.当我尝试在 vscode 中自动完成我的 Class 名称时,括号也带有 Class 名称。 How do I adjust the auto completion in vscode so that it should not auto complete parenthesis for class.如何调整 vscode 中的自动完成,使其不会自动完成 class 的括号。 But I still need the auto completion with functions as I need those params visible when calling.但是我仍然需要自动完成功能,因为我需要在调用时看到这些参数。 Or just auto complete after function/class name if I enter left parenthesis and press tab.或者,如果我输入左括号并按 Tab,则在函数/类名之后自动完成。 The last one would be better;-) Hopes someone has a solution for this:-)最后一个会更好;-)希望有人对此有解决方案:-)

Adding a GIF showing demo:添加 GIF 演示演示: 在此处输入图像描述

Are you using JediLSP Language Server?你在使用JediLSP语言服务器吗? It also occurs to me.这也发生在我身上。

I tried to find out some ways to configure it, but it was built in with the Python extension and seems the VSCode hasn't provided the methods to configure it.我试图找出一些配置它的方法,但它内置了 Python 扩展,似乎 VSCode 没有提供配置它的方法。

After a switch to the Pylance Language Server, the problem solved.切换到Pylance语言服务器后,问题解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM