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

Location of cursor #55

Open
abzhaobo opened this issue Apr 21, 2024 · 1 comment
Open

Location of cursor #55

abzhaobo opened this issue Apr 21, 2024 · 1 comment

Comments

@abzhaobo
Copy link

abzhaobo commented Apr 21, 2024

I'm not sure if I missed something. I'd like to know if it's possible to automatically place the cursor somewhere specified after generating the code by the snippet. For example, in a latex file, the cursor can be located inside both the \begin{} and \end{} to start typing immediately, as shown below:

image
@shivanshPurple
Copy link

This would be great feature add. For example for react hooks such as useEffect ->

useEffect(() => {
  %c%
}, []);

If this is the custom snippet, then the %c% would stand for where cursor should be located on snippet insertion.

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