简体   繁体   English

如何在 function 之后编码“(”时关闭 VS Code 上的 Intellisense 自动完成功能

[英]How to turn off the auto-complete of Intellisense on VS Code when coding '(' after function

I use VS Code, and I'm writing JavaScript.我使用 VS Code,我正在写 JavaScript。

I want to turn off auto-complete, when I'm writing a function.当我写 function 时,我想关闭自动完成功能。 Intellisense suggests some candidates while I write a new function. Intellisense 在我编写新的 function 时建议了一些候选者。

And, I finish writing function name and input '(' Key, Intellisense replaces my function name with the top of the list of candidates automatically. But I don't want to write new function. I don't want my code replaced when I push '(' Key. (Of course, I haven't push Enter or Tab key or other keys then.) And, I finish writing function name and input '(' Key, Intellisense replaces my function name with the top of the list of candidates automatically. But I don't want to write new function. I don't want my code replaced when I push '(' 键。(当然,我当时没有按 Enter 或 Tab 键或其他键。)

I have already tried turn off the suggestion.我已经尝试关闭该建议。

”editor.quickSuggestions”:  false

But this option doesn't suits for me.但是这个选项不适合我。 I use suggestions and auto-complete.我使用建议和自动完成。

Please tell me what setting is suitable.请告诉我什么设置是合适的。

On Windows/Linux - Ctrl + Shift + P在 Windows/Linux 上 - Ctrl + Shift + P

On MacOS - Cmd + Shift + P在 MacOS 上 - Cmd + Shift + P

In the search box type settings.json在搜索框中输入settings.json

paste the following line there将以下行粘贴到那里

"editor.acceptSuggestionOnCommitCharacter": false

在此处输入图像描述

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

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