I want to only have tab attempt to complete the suggestion IF a suggestion is available.
Right now (Version: 0.50.5), when I press tab with no suggestion available no indentation is inserted. I currently have this in my keybindings.json
:
{
"key": "tab",
"command": "editor.action.acceptCursorTabSuggestion",
"when": "!editorHoverFocused && !editorTabMovesFocus && !suggestWidgetVisible"
},
{
"key": "tab",
"command": "-editor.action.acceptCursorTabSuggestion"
},
…where !suggestWidgetVisible
prevents Cursor from attempting to autocomplete when the Intellisense suggestion is open. If there was another scope like cursorTabSuggestionAvailable
, I could add that to the list, and (I think/hope) tab would indent again when there was not a suggestion.