-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Ability to set CSS defaults for IntelliSense in HTML (much as you can set TypeScript default libraries) #117
Comments
@Zlatkovsky There are currently no APIs to replace or modify the list of known CSS selectors, properties or values. Is that what you meant? |
@aeschli , yes, that's what I mean. I want to be able to declare (from an existing web source or whatever) a list of known classes, and get them to show up when I type in my HTML code. I'm surprised when you say there is no API for this, though. I thought VS Code uses Monaco editor... and there I do get autocomplete in my html from referenced CSS files... Thanks! |
@Zlatkovsky No, sorry, the Monaco HTML mode never had code completion for class names. Maybe you can add a screenshot of what you have seen? |
BTW, you want to file this request in the VSCode repo: https://github.com/Microsoft/vscode/issues. |
@aeschli, apologies, looks like I had imagined the CSS autocompletion feature! As you correctly point out, it doesn't look like VSCode has it, either. microsoft/vscode#1005 (comment) already describes the feature request, with a good screenshot detailing the problem. Feel free to close the issue on this repo, if it is tracked by the other one and hence no longer needed here. |
@Zlatkovsky Thanks for finding the issue in the vscode repro. Closing this one |
For TypeScript IntelliSense, it's possible to add additional libraries outside of the editor itself, via
Is it possible to do the same for CSS, to expose some predefined classes to an HTML editor?
The text was updated successfully, but these errors were encountered: