Skip to content

[MacOS] cmd + click on a variable #6

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

Open
acranglesim opened this issue May 23, 2024 · 4 comments
Open

[MacOS] cmd + click on a variable #6

acranglesim opened this issue May 23, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@acranglesim
Copy link

Is it possible to have cmd + click on a variable take you to where the variable is declared?

Or offer a list of where multiple variations have been declared.

@bajrangCoder
Copy link
Owner

Is it possible to have cmd + click on a variable take you to where the variable is declared?

I think it's already available (btw I haven't tested)
And this plug-in supports features which are available in vscode-css-language-server

@bajrangCoder bajrangCoder added the question Further information is requested label May 23, 2024
@acranglesim
Copy link
Author

acranglesim commented May 24, 2024

As far as I can tell - it does not work...cmd + click takes you to references of where the $variable is used, not where it is created.

For example:

$variable = #ffffff;

body {
    background-color: $variable;
}

Cmd + Clicking $variable inside the body background color doesn't take you to $variable = #ffffff;

@bajrangCoder
Copy link
Owner

I know it doesn't work with the external variable which is defined in other file. But it works fine in same file 👇

InShot_20240524_191734642.mp4

@acranglesim
Copy link
Author

Ah, sorry! That is what I had meant, I keep all my variables in a separate variables file - my fault on explaining poorly!

@bajrangCoder bajrangCoder added enhancement New feature or request and removed question Further information is requested labels Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants