question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliSense for new CSS property names and values

See original GitHub issue

hi I’m using styled components in react native

tsconfig.json

"plugins": [
      {
        "name": "typescript-styled-plugin",
        "lint": {
          "validProperties": [
            "aspect-ratio",
            "elevation",
            "margin-vertical",
            "margin-horizontal",
            "padding-horizontal",
            "padding-vertical",
            "resize-mode",
            "shadow-color",
            "shadow-opacity",
            "shadow-offset",
            "shadow-radius",
            "text-align-vertical",
            "tint-color"
          ]
        }
      }
    ]

but not give me IntelliSense code for new specific properties

example: aspect-ratio elevation margin-vertical margin-horizontal padding-horizontal padding-vertical resize-mode shadow-color shadow-opacity shadow-offset shadow-radius text-align-vertical tint-color

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jasonwilliamscommented, Nov 29, 2022

So basically this repo isn’t maintained by Microsoft anymore and needs to be forked and moved into the @styled organization. We should also update the dependencies while we’re at it.

I don’t have much time these days and don’t know when i would get around to doing it. But that is the task. As there’s many issues cropping up about this issue I will try to see what I can do.

Once done i will need some people to test the changes have worked. I will also try to link this issue once we’ve migrated

0reactions
karlhorkycommented, Dec 14, 2022

Ran into the problem with a different CSS property just now - accent-color doesn’t appear to work, in either the normal styled-components.vscode-styled-components@1.7.5 Release version or the styled-components.vscode-styled-components@1.7.6 Pre-Release version (see below).

Maybe the property is too new and not yet in the vscode-css-languageservice data?

The error message is “Unknown property: 'accent-color”.

Screenshot 2022-12-14 at 16 39 17 Screenshot 2022-12-14 at 16 38 50
Read more comments on GitHub >

github_iconTop Results From Across the Web

IntelliSense in Visual Studio Code
IntelliSense is a general term for various code editing features including: code completion, parameter info, quick info, and member lists. IntelliSense features ...
Read more >
Using CSS custom properties (variables) - MDN Web Docs
Custom properties allow a value to be stored in one place, then referenced in multiple other places. An additional benefit is semantic ...
Read more >
vs code and intellisense for CSS Grid and CSS Modules
Fixes content and cursor property names being tokenized as tag ... To make the VS Code recognise these custom CSS directive/properties, ...
Read more >
Web Essentials: CSS Attribute Intellisense - YouTube
JSON Schema introduction in Visual Studio · Gulp and Grunt Intellisense in Visual Studio · Kubernetes 101 workshop - complete hands-on · NULL ......
Read more >
6 Awesome CSS Extensions for VS Code - DigitalOcean
6 Awesome CSS Extensions for VS Code · HTML CSS Support · Intellisense for CSS Class Names · Autoprefixer · CSS Peek ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found