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

Feature request: Jump to last CSS property when clicking on a class name #51

Open
city17 opened this issue Sep 13, 2021 · 2 comments
Open

Comments

@city17
Copy link

city17 commented Sep 13, 2021

Suggestion for a small improvement. Currently if you CMD click on a specific classname (styles.classname), it takes you to that class in the CSS modules file.

The cursor is placed at the very start of that class, just after the dot, before the class name, like so:

Schermafbeelding 2021-09-13 om 10 02 56

For me it would be an improvement if the cursor were automatically placed at the end of the last property of that class, like so:

Schermafbeelding 2021-09-13 om 10 03 06

This way, you can instantly start adding new properties to the class, making it a bit faster workflow.

@iChenLei
Copy link
Collaborator

@clinyong linyong, what's your opinion ?

@clinyong
Copy link
Owner

Since we are using the regular expression to parse css code, I think it is not easy to do that. And consider the nested classes, it will become more complicated.

.container {

  .left {}
}

Maybe we can think about it after finishing the tokenize work.

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

No branches or pull requests

3 participants