Sublime Forum

Autocomplete suggestions does not show up when writing React JSX attributes

#1

The gif below demonstrate my issue. The autocomplete inside the onchange attribute does not show up. When I press tab, the caret/cursor just exits the {} brackets. But the autocomplete does show up only after I exit and go back inside the {} brackets.

sublimeTextAutocompleteIssue

How to fix this?

0 Likes

#2

Maybe "auto_complete_with_fields": true setting can help, if also "auto_complete_commit_on_tab": true is set.

0 Likes

#3

"auto_complete_with_fields" works but it kind of breaks the fields snippets when you want to press tab to switch to the next field. You would then need to press esc first to proceed to the next field in situations where you don’t need the autocomplete.

0 Likes

#4

Well, either you want auto-completion to automatically trigger when switching fields or you’ll decide to manually trigger it via ctrl+space. These are the options.

0 Likes