开发者

Visual Studio 2010 crashes when trying to set CssClass property

开发者 https://www.devze.com 2023-01-12 20:02 出处:网络
Many times when I\'m editing a .aspx file and type CssClass=, the Visual Studio IDE hangs then crashes with option to restart. Clearly this is happening while VS is trying to populate the Intellisense

Many times when I'm editing a .aspx file and type CssClass=, the Visual Studio IDE hangs then crashes with option to restart. Clearly this is happening while VS is trying to populate the Intellisense with available classes. Nine ti开发者_Python百科mes out of ten I already know what class I want. Is there a way to disable Intellisense just on CSS classes? Or is there something else going on?

Specs: Windows 7 (basic theme, no Aero), Visual Studio 2010 Professional, Pentium 4 2.4 GHz, 2GB RAM


Try "Enable Insert attibute value quotes when typing" on Tool -> Options -> TextEditor -> HTML -> Formatting

For me, it fixed the problem.


I had a similar issue before and while it's hard to determine precisely what is triggering your crash, I would recommend a few possible solutions. Hopefully one of these will work for you.

  • Open Options->Text Editor->CSS->Miscellaneous and disable "Statement Completion"
  • Also in the General section there are other "Statement Completion" options.
  • Try closing the project, deleting the contents of the "bin" folder inside the Project folder (you might backup your project before), then re-open the project.
  • As a last resort you can try creating a new project and re-importing the project & code files, or even repairing/re-installing VS.

Best wishes, Matthew

0

精彩评论

暂无评论...
验证码 换一张
取 消