vscode怎么改回车空格
时间: 2024-04-08 17:05:46 浏览: 106
回答: 如果你想在VScode中取消回车自动补全+换行的功能,你可以按照以下步骤进行操作。首先,按下Ctrl+Shift+P,调出命令面板。然后输入"keyboard",选择"Preferences: Open Keyboard Shortcuts"。在打开的键盘快捷方式设置中,点击右上角的"keybindings.json"链接。在json文件中加入以下代码:
{
"key": "enter",
"command": "acceptSelectedSuggestion",
"when": "acceptSuggestionOnEnter && suggestWidgetVisible && suggestionMakesTextEdit && textInputFocus"
}
保存文件后,重新启动VScode即可取消回车自动补全+换行的功能。\[2\]希望这个方法对你有帮助!
#### 引用[.reference_title]
- *1* *2* [VScode 设置与取消回车enter自动补全快捷键](https://blog.csdn.net/weixin_45575229/article/details/113843839)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文