Skip to content

Feature request: Support autocomplete of JSX props via Ctrl + Space #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fhammerschmidt opened this issue Apr 26, 2021 · 2 comments
Closed

Comments

@fhammerschmidt
Copy link
Member

Because as there is no trigger character for it now you can only type the first character to get completion, so you need to know at least something about the possible props.

@chenglou
Copy link
Member

What does your partially edited code look like? ctrl-space is already supported by the editor itself to trigger autocompletion

@cknitt
Copy link
Member

cknitt commented Apr 26, 2021

Example:

If I type the first letter of a valid prop name, I get this, which is great:

Bildschirmfoto 2021-04-26 um 16 38 18

If I do not know the valid prop names and would like to see a list of them, I type Ctrl-Space and get

Bildschirmfoto 2021-04-26 um 16 40 17

which is not what I would have expected.

Compare with what I get in TypeScript when I press Ctrl-Space in the same situation (different project and different component, but you can see that I get the list of props on top):

Bildschirmfoto 2021-04-26 um 16 41 57

cristianoc added a commit that referenced this issue Apr 26, 2021
The autocomplete command does not support this yet, as the example shows.

#147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants