最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - IntelliSense not working in React Native stylesheet after first item - Stack Overflow

programmeradmin0浏览0评论

I am using VSCode (1.34.0) + Flow (Flow Language Support: 1.1.1, Flow Language Client: 0.2.1) (switched to Typescript but still having the same error) Typescript 3.4.5 on my React Native project.

When I start typing a style property, it pletes the first property with no problem, then when I start typing the second style property, it doesn't plete:

What am I doing wrong?

UPDATE: My (relevant) enabled extensions are:

  • Babel JavaScript 0.0.22,
  • Flow Language Support: 1.1.1,
  • Flow Language Client: 0.2.1,
  • npm Intellisense 1.3.0,
  • Prettier - Code formatter 1.8.1,
  • React Native Tools 0.9.3.

I am using VSCode (1.34.0) + Flow (Flow Language Support: 1.1.1, Flow Language Client: 0.2.1) (switched to Typescript but still having the same error) Typescript 3.4.5 on my React Native project.

When I start typing a style property, it pletes the first property with no problem, then when I start typing the second style property, it doesn't plete:

What am I doing wrong?

UPDATE: My (relevant) enabled extensions are:

  • Babel JavaScript 0.0.22,
  • Flow Language Support: 1.1.1,
  • Flow Language Client: 0.2.1,
  • npm Intellisense 1.3.0,
  • Prettier - Code formatter 1.8.1,
  • React Native Tools 0.9.3.
Share Improve this question edited May 24, 2019 at 9:23 Can Poyrazoğlu asked Apr 18, 2019 at 7:57 Can PoyrazoğluCan Poyrazoğlu 34.8k54 gold badges207 silver badges423 bronze badges 4
  • which extensions have you installed? – Jaydeep Galani Commented Apr 18, 2019 at 8:08
  • @JaydeepGalani updated the question. – Can Poyrazoğlu Commented Apr 18, 2019 at 8:15
  • "Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box.". here. I disabled all my extensions, and Intellisense continued working. – diogenesgg Commented May 31, 2019 at 1:34
  • Ok, another thing I noticed: my styles pletions are detected as Words, not Attributes. as referred here – diogenesgg Commented May 31, 2019 at 1:41
Add a ment  | 

2 Answers 2

Reset to default 2

Weird. I have no idea why. I totally forgot about this issue after installing many plugins and Vscode updates.

I don't know what was causing it but now on TypeScript 3.5.2/Vscode 1.36.1 with many plugins disabled, it works perfectly now.

Hi There I faced the same problem what I did is I just installed a vs code plugin named IntelliSense for CSS class names in HTML and it solved the problem for me now it's working The perfect link is here

https://marketplace.visualstudio./items?itemName=Zignd.html-css-class-pletion

发布评论

评论列表(0)

  1. 暂无评论