按下“ Enter”之后自动替换。在VS代码中

发布于 2025-02-04 23:10:07 字数 411 浏览 2 评论 0原文

我正在使用vs Codelua中编写代码,有时在我键入一些有意义的单词时,例如:

"false" , "true" , "else" , "end" , "break" and many others ...

在我按[Enter]进入下一行之后,编辑器替换我在lualua插件中键入的单词... 例如,当我键入:true时 然后,我按Enter Enter替换getThisResource是我的一个插件。 每次键入单词后,我都必须在进入下一行之前按[空间],以使我写的单词不会更改。 有人知道如何在vs code中禁用此选项吗?

Im using VS CODE to write codes in Lua and sometimes when I typed some meaningful words like :

"false" , "true" , "else" , "end" , "break" and many others ...

after I press [Enter] to go to the next line , the the editor replaces the word that I typed with something else in Lua and The Lua plugins that I installed before...
for example when I type : true
and I press enter the editor replaces getThisResource which is from one of my plugins.
and every time after I typed a word , I have to press [Space] before going to The next line So that the word I wrote does not change.
does anyone know how to disable this option for all of the languages in VS CODE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月无声 2025-02-11 23:10:07

我一个人发现。
解决方案是将Enter 上的编辑器接受为“关闭”
或在settings.json中添加此行:

"editor.acceptSuggestionOnEnter": "off"

I found out by myself.
The solution is to set the Editor Accept Suggestions on Enter to "off"
or add this Line in Settings.json :

"editor.acceptSuggestionOnEnter": "off"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文