与ipython类似,是否可以在VScode中使用tab键从Intellisense中选择选项,而不是使用箭头键?
与ipython类似,是否可以在VScode中使用tab键从Intellisense中选择选项,而不是使用箭头键?
{
"key": "tab",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "down",
"command": "-selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+tab",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "up",
"command": "-selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
这是我的一个(keybindings.json)文件。
{
"key":"alt+0",
"command":"selectNextSuggestion",
"when":"suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key":"alt+9",
"command":"selectPrevSuggestion",
"when":"suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
以下是@Mark的答案,适用于您的keybindings.json文件,假设您从一个空的keybindings.json文件开始(可以通过F1菜单轻松找到):
[
{
"key": "tab",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "down",
"command": "-selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+tab",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "up",
"command": "-selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
]
"editor.tabCompletion":"on"
{ "key": "enter", "command": "acceptAlternativeSelectedSuggestion", "when": "suggestWidgetMultipleSuggestions && textInputFocus && textInputFocus" }
- Jason R Stevens CFA