How to increase the IntelliSense analysis size of big CSS files?
Asked Answered
F

2

9

I have a big CSS file(3.5MB) that VS 2022 doesn't seem to pick up and provide classes suggestions.

Is there any way to increase the analysis limits of IntelliSense and provide code completions?

Florencia answered 28/11, 2021 at 23:48 Comment(7)
I am having the same problem but with bootstrap, IntelliSense not working, I even updated to version 17.0.2, and still the same problemOgawa
This used to work better in VS 2019.Rainbolt
Can you share the CSS on Github or Github Gist?Alfilaria
@onkarruikar Take tailwind-dark.css from hereFlorencia
You would have get a prompt for 1st time,it links you to settings where you can increase max word limitScript
@Neptotech-vishnu tried to open it but VS freezes indefinetely -_-Florencia
@Neptotech-vishnu nevermind, after few attempts I managed to open the file but there was no prompt as you sayFlorencia
F
0

The thing that seemed to work was to close all VS windows, delete the .vs folder from the target project and then reopen the project and leave the background task finish before making any interaction.

Now I have all the CSS suggested, but it does still fail from time to time without knowing why, so I leave this question open if there's a way to increase IntelliSense limits

[UPDATE] I opened the same issue at the Developer Community and it does seem to have been fixed with VS 2022 17.1 Preview 3, I didn't test it(I'm gonna do that when it's in the stable branch) but given no further way to fix I will mark this question as solved.

Florencia answered 5/12, 2021 at 21:19 Comment(0)
T
0

I'm likely misreading this, but you might be able to try increasing the Intellisense cache size. I'd also suggest attempting to clean out the icph folder of any extra cache stored in there.

Thunder answered 11/12, 2021 at 21:49 Comment(1)
I'm talking about Visual Studio 2022, not Visual Studio CodeFlorencia

© 2022 - 2024 — McMap. All rights reserved.