resharper 4.5 使 VS2008 非常慢,尤其是对于 ASPX 页面
我正在使用带有 Resharper 4.5 插件的 Visual studio 2008。 Visual Studio 本身表现良好,但是当我添加 resharper 时,它会变慢,并且每次我键入并保存代码时 VS 都会冻结一段时间。当我输入和保存 aspx 文件(标记或 JavaScript)时,性能甚至更差。该解决方案包含大约 35 个项目。我的 PC RAM 为 2GB,处理器为 Pentium(4) 3Ghz,操作系统为 Windows XP。我确实想使用 resharper,它有一些很酷的功能,但同时我不想因为性能缓慢而浪费时间。有什么建议吗?
问候, 罗摩
I am using Visual studio 2008 with Resharper 4.5 add-in. the Visual studio performs well on its own, but when I add resharper it slows down and VS freezes for a while every time I type and save the code. the performance is even worse when I am typing and saving aspx files (mark-up or javascript). the solution has around 35 projects in it. my PC RAM is 2GB and the processor is Pentium(4) 3Ghz and the OS is Windows XP. I do want to use resharper, it has some cool features, but at the same time I don't want to be wasting time due to slow performance. any suggestions please?
regards,
Rama
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先要尝试的是在 ReSharper -> 中关闭解决方案范围分析。选项->设置->分析整个解决方案中的错误。这将阻止 ReSharper 收集解决方案中未打开的所有文件的分析问题。
如果仍然很慢,请尝试完全关闭代码分析(同一选项页面中标记为“启用代码分析”的复选框)。然而,这将禁用分析槽及其错误和警告 - 我认为这是 ReSharper 的一个关键功能。
如果您只想在打开后禁用对单个文件(例如 ASPX 文件或大型代码文件)的分析,
Ctrl+8
将仅针对当前文件打开和关闭分析。The first thing to try is to turn off solution wide analysis in
ReSharper -> Options -> Settings -> Analyze errors in whole solution
. This will stop ReSharper collecting analysis problem across all files in your solution that you do not have open.If it is still slow, try turning off code analysis altogether (the checkbox labelled "Enable code analysis" in the same options page). This will however disable the analysis gutter with its errors and warnings - something I think is a key feature of ReSharper.
If you just want to disable analysis on a single file after opening (ie. such as an ASPX file or a large code file),
Ctrl+8
will toggle analysis on and off just for the current file.