简体   繁体   English

禁用键盘<enter>在自动完成

[英]Disable keyboard <enter> on autocomplete

Currently there are two ways of accepting an autocomplete suggestion on a Monaco editor:目前有两种方法可以在 Monaco 编辑器上接受自动完成建议:

  1. Selecting the suggestion with the mouse用鼠标选择建议
  2. Pressing the <enter> key按下<enter>

We want to disable the <enter> key for accepting the autocomplete suggestion and let it add a new line instead.我们希望禁用<enter>键以接受自动完成建议,并让它添加一个新行。

有一个选项可以禁用它:

  acceptSuggestionOnEnter: "off",

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

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