resharper

Ctrl+R, Ctrl+R command not working

谁说胖子不能爱 提交于 2019-12-03 06:26:10
问题 I'm attempting to use the Ctrl + R , Ctrl + R command within Visual Studio 2008 to rename a variable. I get an error message at the bottom saying that "The key combination ( Ctrl + R , Ctrl + R ) is bound to command (&Rename...) which is not currently available." I am not running it or anything I can think of which might prohibit modifications of the file and the F2 command allows a rename to happen. Anyone know how to fix this? EDIT: I do have Resharper installed but was previously able to

How to get Resharper to allow underscores in method names but only in Tests?

末鹿安然 提交于 2019-12-03 05:34:11
问题 I know that there is a way to do this, but I can't find it again. So, does any one know how to allow Resharper to allow underscores in unit tests? So, for example I want this to be OK In MyClassTest.cs public void MyMethodName_StateUnderTest_ExpectedResult() {} But I want this to flag: In MyClass.cs public void MyPoorly_Named_Method() {} Thanks for any help 回答1: This post demonstrates how to configure this: http://atombrenner.blogspot.com/2010/07/how-to-change-resharper-naming-style.html

Where is the Visual Studio 2008 Crash Log? [closed]

孤人 提交于 2019-12-03 05:22:31
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. I have Visual Studio 2008 with SP1 installed and it is crashing when I'm using lambda expressions in the Moq Framework. At first I thought the problem was Resharper...but now that I have uninstalled it, VS 2008 still crashes. I'm able to replicate the issue every time. I'm thinking perhaps it may be some other plugin that is causing the issue rather than VS 2008...but I can't be sure of that. So what I'm trying to find

How are you using the pattern matching functionality in ReSharper 5?

房东的猫 提交于 2019-12-03 05:18:10
问题 Resharper 5's new pattern matching seems very powerful, though it takes a bit of tinkering to work out how to use it. For those who aren't familiar with this feature, it allows you to search for specific patterns within your code. Instances of such patterns may optionally be replaced with an alternative. In IntelliJ this was called structural search and replace. It's much more powerful than simple RegEx search/replace. I'd like to collect a series of patterns that people are using so that I

Automated refactoring to add parameter names to method calls

て烟熏妆下的殇ゞ 提交于 2019-12-03 04:59:46
I am in the middle of a big refactoring. I have dozens of methods, which are called via positional parameters. Now I would like to have them called via named parameters. The methods exist in several, non-inherited classes and have the same name and their signatures differ. Example: Definitions public class Foo { public static Foo Create(int count, string name) { ... } } public class Bar { public static Bar Create(string description, bool yesNo, float factor) { ... } } And the following calls I would like to replace, from public void CreateSomeObjects() { var foo = Foo.Create(123, "foo"); var

Brace highlighting in Visual Studio for Javascript?

折月煮酒 提交于 2019-12-03 04:35:30
Is there a way to get Visual Studio 2008 to do matching brace highlighting for Javascript? If there is no way to do it in Studio, can it be done using ReSharper? Thanks!! Note that Visual Studio will still find a matching brace in JavaScript via Ctrl + ]. Here is an extension for VS2010 that will do just what you desire. And it's free! http://visualstudiogallery.msdn.microsoft.com/872d27ee-38c7-4a97-98dc-0d8a431cc2ed You could give Visual Assist X a go: http://www.wholetomato.com/ For what it's worth, I use the most excellent ViEmu plugin for visual studio, and it supplies the Vi(m) paren

Do you have any tips to improve ReSharper and/or Visual Studio performance?

和自甴很熟 提交于 2019-12-03 04:35:02
问题 I'm using visual studio 2008 and ReSharper 4 and it's kind of slow. My machine has 2 GB of RAM, dual core processor and a 7200 rpm hard disk. I know more RAM and a faster hard disk could improve performance, but do you have any tips to improve ReSharper/Visual Studio performance? 回答1: Turn off the annoying RSS reader Tools, Options, Environment, Startup Turn off all the animations Tools, Options, Environment, Animate Environment Tools Install the recent Service Pack Clean out your WebCache

How can i specify a designer datacontext for a style, so Resharper finds my properties?

本小妞迷上赌 提交于 2019-12-03 04:19:08
问题 I often bind the IsExpanded and IsSelected properties of a TreeViewItem to my viewmodel. This for example makes it possible to make an item pre-expanded when the tree is loaded or expand an item when it gets selected. The XAML looks like this: <Window x:Class="StyleSetterDatatypeTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d=

ReSharper intellisense does not display documentation

与世无争的帅哥 提交于 2019-12-03 04:15:53
Any idea why I'm not getting any documentation to go along with my ReSharper IntelliSense? If I go to the ReSharper options and enable the Visual Studio IntelliSense instead, I get the proper documentation when going through the members in the IntelliSense pop up. If I re-enable the ReSharper IntelliSense, I now get the ReSharper IntelliSense pop up sans documentation. Go to ReSharper | Options -> Environment | IntelliSense | Completion Appearance . Check Show member signatures and Show summary . For those who, like me, tried the solution provided above and it didn't work. I found this article

ReSharper sluggishness

馋奶兔 提交于 2019-12-03 04:15:06
I like ReSharper, but it is a total memory hog. It can quickly swell up and consume a half-gig of RAM without too much effort and bog down the IDE. Does anybody know of any way to configure it to be not as slow? Turn off the on-the-fly compilation (which, unfortunately, is one of its best features) Not sure how big your solutions are, but I stopped using 4.5 for the same reasons I stopped using all previous versions, memory usage. Code analysis and unit test support was the main reason I bought it, turning it off means the rationale for using it is gone. Workstation has 4GB of memory, and I