Code Monkey home page Code Monkey logo

vscode-html-css's People

Contributors

abliger avatar aeschli avatar badre429 avatar benjcal avatar coliff avatar cvharris avatar dependabot[bot] avatar dvic avatar ecmel avatar grunxen avatar harry-sm avatar hornmichaels avatar jankeromnes avatar maltesa avatar michaelshorn avatar naccoll avatar negcx avatar rush1818 avatar schpet avatar soullivaneuh avatar tanhakabir avatar thecolorred avatar vignesh0025 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-html-css's Issues

CSS color decorators and JS autocomplete problem

Thank you!!! Your extension really helps me a lot. It works great! And I have a few questions to ask.

  1. I notice that the CSS color decorators attached to color values inside style tags in html files seem not working in vscode 1.3.
    800e1a0452d3d1c214b39616bc17b4d6_b
    May your extension help fix this problem in future updates?
  2. If there is any possibility to fix the JS autocomplete problem inside script tags in html files?
    Thanks again.

make the editor some low react.

OS: win10 X64
editor version:1.17.1
when i after installed this plugin ,the slide scroll bar will active a low react with the mouse scroll.

Is possible to restrict suggestion only for HTML / CSS (without PHP context)

Hi @ecmel ,

Im using ur extension together with PHP intelisence, it make a little mess together.

Your extension should have limitation only for HTML / CSS context, in PHP it should not live in PHP at all

See example: Im finding some internal methods in PHP
with your extension: https://goo.gl/dzGYpA (its wrong, its offer local variables etc, this has to be solved by PHP intelisence)
without your extension: https://goo.gl/2c1j7G (explanation in previous point)

Thx for feedback.

PS. Im missing your answer at #55

Supporting Multi-root Workspaces in VS Code

Hi,

I'm from the VS Code team and I'm reaching out with some additional resources for adopting multi-root workspaces.

But first let me say thank you for working on and maintaining HTML CSS Support for VS Code which is one of the most popular extensions we really appreciate the work you have done to make VS Code better.

The purpose of this issue is that we are very close to releasing a significant new feature for VS Code - Multi-root Workspaces - which is the most requested missing feature. If you have not heard of multi-root workspaces we have described this in several of our recent updates. Today it's only enabled in our insiders release but our intent is to enable it for all users in our next update, targeted for release in the first week of November.

This is a pretty significant change and over the last four months we have updated pretty much all of VS Code to be Multi-root aware as well as updated all of our own extensions. In the process of doing this we have created a set of guidelines for Extension Authors to follow to ensure their extension can fully leverage the awesomeness that is Multi-root workspaces.

Our Request:

Having looked at your extension we think changes are required in how:

  • You contribute or change settings, specifically you need to review whether some of the settings can be applied on a resource (= file location) level instead of being global (= workspace level).
  • Your extension makes use of the (now deprecated) workspace.rootPath property, there is a proposed migration path and sample for this case.

How Can We Help/Resources:

We realize we are asking for your help here - our goal is to make sure that your extensions works well with multi-root and continues to be loved by the community. The guide above outlines the changes that are required and we have a samples as well.

But we are sure you will have questions and we thought one way we could look to help is by getting a number of the team members (myself included) to be ready to respond to questions on a Slack Channel that we will dedicate to this issue. To join that channel simply follow this link.

Again thank you for being part of the VS Code community - we appreciate everything you have done. With the release of Multi-root Workspaces we will be shipping our most requested feature, together we can really help this feature light up for users.

Happy Coding!
Sean McBreen

// cc @bpasero @aeschli

Support for blade

I have the blade plugin, so it would be nice if the blade language id was supported too.

css classes from node_modules aren't showing up

Now that resource.json is deprecated, I can't figure out how to reference a css file installed inside my node_modules folder.

For example:
node_modules/tachyons/css/tachyons.css

I'm not sure if this is a bug or if there's something else that I need to configure now that resource.json is deprecated.

Stop tab completion at end of dash

I'd like for tab completion to stop after a dash (and ideally only if there is more than one choice). Would that be feature request for this project or for VS Code itself?

it affect html suggest in VSC(1.5.0)

VSC: 1.5.0-insider
OS: macOS 10.12

1.5.0-insider new settings

// Configures if the built-in HTML language support suggests Angular V1 tags and properties.
"html.suggest.angular1": true,

// Configures if the built-in HTML language support suggests Ionic tags, properties and values.
"html.suggest.ionic": true,

// Configures if the built-in HTML language support suggests HTML5 tags, properties and values.
"html.suggest.html5": true,

when I use the extension, then html suggest can not working in 1.5.0-insider

Html Zen Support

vscode supports zen coding:

div.my-class.my-other-class

Then when you press Tab when you are at the end of the line it creates this:

<div class="my-class my-other-class"></div>

It would be nice to have intellisense for this.

Sass/scss support

Hello,

I'm using Vue.js 2 together with scss.
I'd like to have scss instead of css intellisense(suggestion, errors) inside my <style lang="scss"> tags.
(Or just globally in all style tags).

Is it already possible somehow? An if not, can you please add a support for this?

Many thanks!

Does this support HTML mixed with PHP code?

I am trying to use the extension with .php files that have html code mixed in, no auto complete is coming up. I renamed the files to .html (just to test), and none of the completion is showing up (it has some <?php tags in it).

I waited a long time for css definitions to load, still not working.

Is there a reason the .php files and .html files with php in them are not auto-completing the classes or ids?

Installation help

I am having difficulty getting this to work. I am using VS Code on MacOS with Dotnet Core 1.1 (cshtml/razor).

I installed the plugin as per "ext install vscode-html-css" but my CSS classes do not show when inside a .cshtml file and typing class="" or similar.

I tried adding an external CSS reference to .vscode/settings.json also but that hasn't worked:

"css.remoteStyleSheets": [
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
]

I installed "npm install -g --save vscode-css-languageservice" also.

I have tried uninstalling and reinstalling to no avail. Could another plugin be causing issues? Or have I missed a blatantly obvious step?

This extension trigger vscode search process cpu usage override

when i enable Html-CSS-support with the lasted version vscode, after a period of operation, there is a chance to cause cpu to use overflow. In activity monitor, it shows the cpu usage of search process override. After disable Html-CSS-support, this problem never happened again.

Cannot get it working on Win10, Code 1.19.3, x64. Plugin version 0.2.0

Hi,

thank you for a great plugin, I have been using it for a while!

Problem:

  • Yesterday, I moved to a new Win10 machine and I can't get it working. That means the plugin does not pick local scss nor external stylesheet and does not show them after ctrl+ space. I work in Jade mostly but tried also HTML.
  • Project and settings are exactly the same as on my old machine where it works like a charm. The only difference is that I was running 32bit install of Code and now I have the 64bit version.

Solutions I tried:

I tried literally everything I could think of:

  • disable other plugins
  • reinstall plugin
  • reinstall VS code - tried both 32 bit and 64 bit again ๐Ÿ˜„

Can you advise me what else could I try to get it working?

Thank you,

Ondrej

Extension causes high cpu load

  • VSCode Version: Code 1.18.0 (dcee2202709a4f223185514b9275aa4229841aa7, 2017-11-08T21:22:49.932Z)
  • OS Version: Windows_NT x64 10.0.16299
  • Extensions:
Extension Author (truncated) Version
html-snippets abu 0.1.0
npm-intellisense chr 1.3.0
path-intellisense chr 1.4.2
bracket-pair-colorizer Coe 0.10.13
vscode-markdownlint Dav 0.11.0
vscode-eslint dba 1.4.3
githistory don 0.2.3
jquerysnippets don 0.0.1
xml Dot 1.9.2
gitlens eam 6.0.0
vscode-html-css ecm 0.1.8
git-project-manager fel 1.4.0
auto-rename-tag for 0.0.15
beautify Hoo 1.1.1
vscode-fileheader mik 0.0.2
HTMLHint mka 0.4.0
python ms- 0.8.0
azure-account ms- 0.2.0
cpptools ms- 0.14.2
csharp ms- 1.13.0
debugger-for-chrome msj 3.5.0
vscode-icons rob 7.17.0
code-settings-sync Sha 2.8.5
stylelint shi 0.30.0
code-spell-checker str 1.4.12
jsx Twe 0.0.1

(1 theme extensions excluded)

Steps to Reproduce:

  1. Install dva-cli and create a project with dva new demoProject,
  2. Low cpu cost if I disable all extensions,
  3. High cpu cost if I enable HTML CSS Support only.

Reproduces without extensions: No

Set class in HTML / PHP file cannot be found in SCSS file

When Im looking for a class in a PHP/HTML file (which exists in CSS or SCSS), then its found - works perfect.
See screenshot: https://goo.gl/6BHabY (from PHP file) https://goo.gl/bpWVqg (SCSS file)

But vice versa it doesnt work, Im looking for HTML class or ID in SCSS/CSS file, but it doesnt find anything.
See screenshot: https://goo.gl/23AnEQ (html class defined in PHP file) and im trying to complete in SCSS file (not found) see: https://goo.gl/C1HDmb

Can it be set or what am I doing wrong?

Support for .jade and .pug files

He there!
I was wondering if there's a way to add .pug files class names autocompletion.
The extension works perfectly in a pure HTML file, but would be awesome if it can support and pugjs. Is there a way I can manually set it up to also include the functionality in other files than just .html.

Thanks!
Keep up the awesome work!

Support for remote stylesheets

It would be nice if I could place a list of remote css files in the settings of the current project.

So in .vscode/settings.json I could have something like this:

{
    "css.dependencies": [
        "https://cdn.remote.com/bootstrap.css",
        "https://cdn.google.com/mdl/material.css"
    ]
}

Then when I used the plugin, I could get a list of class names from one or more remote cdn's.

jade or pug file does not work

I just edit in /test/test.pug,

a(class='exter')

The expected item external-test1 does not appear,So does test.jade.
It works normally with html.

Bootstrap suggestions don't work

  • Visual Studio Code: 1.12.2
  • Extension 0.1.5

Tried reinstalling and installing again, but extension doesn't suggest any classes from Bootstrap 4 (from node_modules).

Replace text instead of append to it

When I have a class that I want to change, like this:

<div class="text-left"></div>

I then delete the part I want to change like this:

<div class="text-"></div>

Then type R to bring up intellisense, and select text-right from the list, and what happens is, that it just appends it to the current class instead of replacing it so it looks like this:

<div class="text-text-right"></div>

What really should happen is that it replaces the current item completely so I get this:

<div class="text-right"></div>

Suggestion after the '.'(point)

-- Sorry for the English, I used Google Translator --

I like its extension, but whenever I have a . And press ctrl + space or type something after the point the same suggests until you change the line.

Example of situation:

<h5> This is a test. </h5>

Just after the . the extension is suggesting.

So my suggestion is: Have an option to disable the suggestion after the . if you are typing in the tag or rather suggesting between the tag.

Example:

<div class = ".anything here can keep suggesting"></div>

<div> Test. No more suggesting </div>

Except between the tag style or another one that I find necessary for css.

I do not know if that's possible. Thanks and congratulations for the extension.

have a problem about class compelete in *.vue

Env

  • VSCode Version: 1.12.1
  • OS Version: Windows 10 64bit
  • Node Version

Problem

The class suggestion work outside of the html in some file. As follows:
https://gyazo.com/a6e4d76157e9dd6d6522fd14636888d5

Steps to Reproduce

npm install vue-cli 
vue init webpack test
cd test
npm install
  1. create a new file named Test.vue in /src/components/
<template>
  <div>test</div>
</template>

<script>
export default {
  name: 'Test'
}
</script>

<style>

</style>
  1. this is normal.
    https://gyazo.com/7d1f2919244085cd3dc05486590575ae

  2. this is abnormal.
    https://gyazo.com/35fadbb98983d0cbf11271618ea0cbe8

This problem will appear when I import other files.

In addition, I meet it in Hello.vue. As follows:
https://gyazo.com/23a236cf7790ac985f13512313b60367

However, it is not always.
https://gyazo.com/9c4f4dbcd16a0eb2980d2f230db5b7fc
or
https://gyazo.com/37b084d0de446930e73e14769935c0da

Feature to cache or allow re-attempting the download of remoteStyleSheets

Sometimes when I first launch VS Code I do not yet have an internet connection. If this happens, HTML CSS Support completions are not available, even after I connect to the internet and I must restart VS Code to get the completions working again.

  • Optimally the remoteStyleSheets would be cached and available even in offline situations.
  • Alternatively a menu/keyboard action would be available to force re-attempting the download of remoteStyleSheets.

Support *.md Files

This may seem odd but it is pretty common to combine html in *.md files. This plugin would be incredibly helpful if it happens to support *.md files in addition to the several other file types it already supports.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.