I use MVC4 to develop on a website project and installed Mindscape workbench, Sass studio extension.
I also use bootstrap and Jquery script, not sure if this matters.
I usually edit scss file then save changed then view my change in browser while debugging, however, after working for a white, my editor becomes really slow, slow to click button, slow to type ( it takes couple seconds to move cursor ), almost slow at any interaction with keyboard and mouse. I have to restart my Visual Studio every time, it is really painful.
It is obviously something with SCSS extension to cause this slowness, because if I uninstall extension, this slowness is gone with it.
Has anyone also experienced this, and if you find solution of this, please kindly let me know, will really appreciate it!
Related
Sometimes after editing some parts of a razor source file, the editor crashes with tons of errors like the following screenshot:
It fails to recognize these external components from NuGet packages and other source files.
This problem has been around for quite a while. Since it could be simply fixed by reloading the project, I didn't pay much attention to it at first. However, it started to appear frequently recently, I have to reload the project every few minutes, which is really annoying.
Maybe someone has also encountered this problem? It sucks to have to reload the project all the time!
To be mentioned, I'm using ReSharper 2021.3 along with VS2022, but ReSharper's global analyzers still work fine when VS's crashes.
I was coding with razorpages when randomly about 2 days ago the razor pages now display boths the cshtml and cs right away. earlier I could expand the cshtml to get to the cs file and i think it was a more compact that way
i think its options somewhere in tools->options->environment () but there are so many
after a few different google searches I found nothing helpful.
here is a picture of the problem:
earlier I could expand the cshtml to show the .cs files now i just see all of them and its kind of overwhelming.
enable file nesting in solution explorer
They're not being nested, is all. It's literally two separate files, Visual Studio just recognizes that it's a Core project, and then shows them nested, since it understands that they're related. If that's not happening, then that means Visual Studio doesn't recognize it as a Razor Page, which could be a problem with VS, the project, or something else entirely. It's essentially impossible to say what the issue might be, so you'll just need to try stuff. A few things I can think of to try:
If you're not using VS 2019, upgrade. Ultimately, this is part of the ASP.NET Core tooling, and best version of that is always going to be in the latest release.
Verify that you solution is building correctly. You might also consider deleting all bin and obj directories and rebuilding to ensure the build is truly up to date.
Close Visual Studio completely and re-open it. You may consider restarting as well. (You've probably already tried this though).
Try running Visual Studio in "safe-mode", which essentially just means disabling all the extensions you have installed. You can either manually disable all your extensions and then restart or close Visual Studio and start it via the command like with devenv /safemode. If this fixes the issue, then there's an extension causing issues. You'll probably need to just disable each one by one to see which on is causing the problem, and then either remove it or see if there's an update that corrects it.
If all else fails, repair Visual Studio. Run the intaller, and click the "More" link under the installation you're working with. Then click "Repair".
When i open Visual Studio i see on the top buttons: File, Edit, Selection, View, Go, Debug, Taks and Help. Whatever button i opened i couldnt find any restart button. I searched on the google and also on this website what should i do. I got few same answers- that i should download some sort of restart extension (i am new in programming, so im not quite sure what is the name of it). When i dowloaded it and inserted it in Visual Studio, there was this sentence thats says that VS wont open the file because its too large ( i think that there were another 2 reasons ). I googled that and still couldnt find anything helpful. In all of this searching i found out that this is might connected to option tools
and customize
but i cannot find them aswell. Can anyone tell me roughly what might be the problem? Thanks! :)
If you're looking for some way to restart visual studio, say after installing some plugins, all you need to do is Close and Re-Open it. There is no specific restart button
I have a problem with Visual Studio 2015 Community.
It's a bit difficult to explain, but here goes.
It seems like Visual Studio is not updating the window when I e.g. Open a project, tries to write in command line, open a file.. or do anything. But a soon as I manually resize the window of Visual Studio, all the things I have pressed or typed appears.
I have Visual Studio installed on two computers. At first it was all fine and dandy on my laptop, everything worked as it should.
Then the problem started on my desktop computer, so I decided to go back to my laptop, but surprise! Now my laptop had been cursed with the same problem! (They use the same user in Visual Studio).
I have tried to re-install VS, repair VS and delete the cache folder inside "App Data"-folder, but no luck.
It seems like Visual Studio works fine, but it just won't show me. (Unless I resize the window)
Can anyone please help me?
Found the problem!
It was the voice communication app called "Mumble" that created all the fuss!
Mumble has a feature called "Overlay" - That feature makes VS go crazy, apparently!
Turning it off, makes all of my troubles go away.
Thank you all for the input anyways.
I am having problem in using the source view of an asp.net page in VS.net 2008 IDE. I am not using Design view at all. IDE hangs a bit every now and then, when I use intellisense in it, and I scroll the page.
Please throw some light on it.
Such issues doesnt come up while editing the HTML page, and while editing same asp.net page with the HTML editor which can be configured using Tools -> Options menu option.
Read this Post
This might help to make your visual studio a bit faster in general. I am not very sure about the exact reason for the behavior you mentioned of your Visual Studio.
I suspect that it has something to do with Graphical Interfaces like Toolbox etc.
Thanks
I've had problems like that with Visual Studio before. The intensity of the problems seem to multiply exponentially as the size of the file I work with gets larger.
Here's what I'd reccomend:
Check and make sure Visual Studio is fully updated (Help > Check For Updates) ; there have been some patches released and they will help you immensly!
If your code has any breakpoints, disable them all and start afresh later (Debug > Disable All Breakpoints)
If that fails, here are some more optimizations you can try.
In my case, I think longer file is the culprit. I think partial page concept should be applicable to asp.net page too.