Skip to content
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

[feat] support auto trigger suggestion in more situations #214

Open
tjx666 opened this issue Jun 27, 2024 · 0 comments
Open

[feat] support auto trigger suggestion in more situations #214

tjx666 opened this issue Jun 27, 2024 · 0 comments
Assignees

Comments

@tjx666
Copy link

tjx666 commented Jun 27, 2024

Benefit

In these case, I normally need to trigger suggestion by shortcut, with auto suggestion would be more convinient.

Note

respensent cursor position.

case1

press space or enter in object destructure after comma:

const { data,} = useProfile()

case2

press space or enter after object literal property comma:

interface A {
  name: string;
  age: number;
}

// press `space` after `comma`
const a: A = {
  name: 'a',};

// press `enter` after `comma`
const a: A = {
  name: 'a',};

case3

jsx component attribute when press enter:

<Stack
  direction="column"
  sx={{ height: 1, width: 1 }}
  
  alignItems="center"
  justifyContent="center"
>
  {renderAffiliate()}
</Stack>
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

2 participants