Skip to content

Request new features : Go to Definition #139

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
Solotov opened this issue Jul 11, 2018 · 5 comments
Open

Request new features : Go to Definition #139

Solotov opened this issue Jul 11, 2018 · 5 comments

Comments

@Solotov
Copy link

Solotov commented Jul 11, 2018

Make the extension more productive by adding the functionality "Go to definition"
using "Ctrl + click" or "Ctrl + alt + click"

Thank you!

@muuvmuuv
Copy link

muuvmuuv commented Aug 8, 2018

Pretty good idea! So you think about something like: Right click on class in HTML or CSS -> Menu shows Go to class definition?

@Solotov
Copy link
Author

Solotov commented Aug 9, 2018

Yes , when you press ["Ctrl" + Mouse "Click"] on a name of CSS class , this extension automatically open and show corresponding CSS file and highlight line of clicked CSS class, or you can show in a contextual menu "Go to definition" when cursor is placed in class attribute (or both options).

@bryandandan
Copy link

Hi,

I'm working on a web app on Visual Studio Code. I have referenced a local bootstrap CSS file in the attribute. I am benefiting from the auto-complete, however, I am receiving a "No definition found for .." error when trying to "Go To Definition". Kindly advise

Note: I have tried the cache command.

Thanks in advance

Here is a snapshot:

issue

@muuvmuuv
Copy link

muuvmuuv commented Aug 14, 2018

@bryandandan yes, because we are discussing here about to implementing this feature. Currently there is no support to go to class definition.

Anyway just a tip: if you are going to build a bigger project look at webpack to bundle your js files and use async to load it in the head. There is also npm to handle your libs better with versions and good update functionality

Sent with GitHawk

@bryandandan
Copy link

@muuvmuuv We are looking forward to the new feature. Many thanks for your advice, I will be sure to look into them. They seem very useful.

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

4 participants