Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

css changes doesn't take affect in visual studio

Recently I have encountered with a strange problem:from time to time visual studio ignored changes I made in .css. Only when I recreate .css with another! name changes become visible. When I clear solution and delete .css visual still render! deleted .css .Has anybody same problems or it is only my bug?

like image 741
Anton Putov Avatar asked Dec 24 '12 19:12

Anton Putov


People also ask

Why are my CSS changes not working?

If you are not seeing changes that you have applied to your website, you may need to clear your browser cache and/or the CDN cache.

Why are my CSS changes not reflecting?

If your browser is not reflecting the changes made in the CSS stylesheets attached, then try the following : Right click on your document in the browser window. Go to View Page Source. Reload your document and the changes will appear.

Why CSS is not working in VS code?

Why my CSS file is not working in VS code? The problem may be that your browser is caching the CSS file. If you're debugging with Edge, you can open the F12 tools and click on the Network tab. At the top, you'll find a button to "always refresh from server." Turn this on, and files won't be cached.

Can you use CSS in Visual Studio?

Visual Studio Code has built-in support for editing style sheets in CSS . css , SCSS . scss and Less .


1 Answers

First of all, make sure web caching is disabled in your project although Visual Studio Disables this mechanism automatically. Also, you can try Incognito/Private-Browsing mechanism in your browser if it supports. Another reason may be using unchanged css files. Try Clear Browsing Data to understand what causes the problem.

like image 107
Amirhossein Mehrvarzi Avatar answered Oct 07 '22 23:10

Amirhossein Mehrvarzi