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

[css] Autocomplete for media queries #61125

Open
ghost opened this issue Oct 17, 2018 · 8 comments
Open

[css] Autocomplete for media queries #61125

ghost opened this issue Oct 17, 2018 · 8 comments
Assignees
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Milestone

Comments

@ghost
Copy link

ghost commented Oct 17, 2018

VSCode doesn't offer autocompletion for media queries.
Why is that?

2018-10-17_104706

@Tyriar Tyriar added the css-less-scss Issues and items concerning CSS,Less,SCSS styling label Oct 23, 2018
@aeschli aeschli added the feature-request Request for new features or functionality label Oct 23, 2018
@aeschli aeschli added this to the Backlog milestone Oct 23, 2018
@aeschli aeschli changed the title Autocomplete for media queries [css] Autocomplete for media queries Jan 8, 2019
@proimage
Copy link

proimage commented Jun 7, 2019

x100!

There should also be a way to get ahead of the curve and allow users to enable support for Level 4 media queries via a user setting.

@ghost
Copy link
Author

ghost commented Jun 7, 2019

Made this snippet recently, triggers by typing "media"

    "prefix": "media(){}",
    "body": [
      "@media (${1|max-width,min-width|}: ${2|479,480,767,768,980,981|}px) {",
      "\t${3:body} {",
      "\t\t$0",
      "\t}",
      "}"
    ],
    "description": "media queries"
  }

@rsolomonjr
Copy link

Made this snippet recently, triggers by typing "media"

    "prefix": "media(){}",
    "body": [
      "@media (${1|max-width,min-width|}: ${2|479,480,767,768,980,981|}px) {",
      "\t${3:body} {",
      "\t\t$0",
      "\t}",
      "}"
    ],
    "description": "media queries"
  }

Where do you place it? css.json?

@octref octref removed their assignment May 1, 2020
@aeschli aeschli added the help wanted Issues identified as good community contribution opportunities label Oct 7, 2021
@jesperjen98
Copy link

I would love to work on this issue.

@aeschli
Copy link
Contributor

aeschli commented Oct 15, 2021

@jesperjen98
Copy link

@aeschli sorry for the long silence from me, but after a long time of debbuging and testing i have written an implentation for the autocomplete. The implementation is based on how the IPropertyData interface is implemented. I have submitted a pull request but if there is anything that needs to be changed in the implementation i would love to keep working on it. Feedback is also greatly appreciated.

@aeschli
Copy link
Contributor

aeschli commented Dec 7, 2021

Thanks @jesperjen98, I'll have a look ASAP.
microsoft/vscode-css-languageservice#256

@kevincharp
Copy link

Since 2018 this problem has not been solved?

Was there any solution/configuration to get autocompletion or suggestions when using media querys in css files?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities
Projects
None yet
Development

No branches or pull requests

7 participants