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

[html] add css intellisense for styles #1005

Closed
areijngoudt opened this issue Dec 4, 2015 · 11 comments
Closed

[html] add css intellisense for styles #1005

areijngoudt opened this issue Dec 4, 2015 · 11 comments
Assignees
Labels
feature-request Request for new features or functionality html HTML support issues
Milestone

Comments

@areijngoudt
Copy link

The style links are set in my MVC masterpage _Layouts:

VSCode does not 'see' any styles.

Is there a way around this?

@alexdima
Copy link
Member

alexdima commented Dec 4, 2015

@areijngoudt Did you intend to provide a screenshot? Can you please provide the code snippet that has issues?

@alexdima alexdima added the info-needed Issue requires more information from poster label Dec 4, 2015
@areijngoudt
Copy link
Author

Oh, I don't have access to the code right now. It's something like:

link href='~/Content/bootstrap.css' type=...

Etc

@aeschli aeschli changed the title css intellisence not working when style link paths start with "~/" [html] add intellisence for link href Dec 7, 2015
@aeschli aeschli added feature-request Request for new features or functionality html HTML support issues and removed info-needed Issue requires more information from poster labels Dec 7, 2015
@aeschli
Copy link
Contributor

aeschli commented Dec 7, 2015

Note that we don't have any intellisense for href completion in HTML, so it's doesn't depend on whether the string starts with '~/'

@areijngoudt
Copy link
Author

Hi Martin,

Ok, I understand. But my point is that css intellesense does not work.
So my question is how to solve this.

Kind regards, Ad.

Op 7 dec. 2015 om 10:52 heeft Martin Aeschlimann notifications@github.com
het volgende geschreven:

Note that we don't have any intellisense for href completion in HTML, so
it's doesn't depend on whether the string starts with '~/'


Reply to this email directly or view it on GitHub
#1005 (comment).

@aeschli
Copy link
Contributor

aeschli commented Dec 8, 2015

@areijngoudt Maybe I misunderstood what you meant with 'css intellisense'. Is it about completing the href in a link tag, or is it about completing css rules inside html. Can you give a more compete example code and write what completions you expect? A screenshot would be great.

@areijngoudt
Copy link
Author

Hi Martin,

Sorry, have no screenshot available right now.

What I mean is that when in an .html file I type class='btn btn-' I don't
get auto complete suggestions. And when I press Ctrl+. a popup appears
saying something like No symbols found.

Best regards, Ad.

Op 8 dec. 2015 om 09:28 heeft Martin Aeschlimann notifications@github.com
het volgende geschreven:

@areijngoudt https://github.com/areijngoudt Maybe I misunderstood what
you meant with 'css intellisense'. Is it about completing the href in a
link tag, or is it about completing css rules inside html. Can you give a
more compete example code and write what completions you expect? A
screenshot would be great.


Reply to this email directly or view it on GitHub
#1005 (comment).

@aeschli aeschli changed the title [html] add intellisence for link href [html] add css intellisense for styles Dec 9, 2015
@aeschli
Copy link
Contributor

aeschli commented Dec 9, 2015

Thanks @areijngoudt, I updated the issue title

@egamma egamma modified the milestone: Backlog Dec 10, 2015
@Natas0007
Copy link

I'm actually having this exact same issue and I'll be glad to supply a screenshot. This is about the simplest example I can create. index.html has both a reference to app.css which only contains the teststyle class and the inlineTest class is declared directly in the html file. Neither of these classes are shown in intellisense when typing in a class attribute of a html element. The screenshot shows "No suggestions" which is what comes up with Ctrl+Space. Also, Find All References is greyed on when right clicking on either of the css classes. I'm sure these 2 issues are related.

vscode no css intellisense

@sophie-eihpos
Copy link

I would like to have intellisense when using bootstrap classes. Is there any plan on when this feature can be completed? Thank you.

@chumtoadafuq
Copy link

this feature is a gap in what is otherwise the best code editor out there... any plans to address this anytime soon?

@aeschli
Copy link
Contributor

aeschli commented Oct 11, 2016

duplicate of #2037

@aeschli aeschli closed this as completed Oct 11, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality html HTML support issues
Projects
None yet
Development

No branches or pull requests

7 participants