Questions tagged [resharper-5.x]

11 questions
5
votes
2 answers

What R# setting is reformatting this line?

VS2010 / R#5.1 I have this "line" of code: With.Mocks(_mocks).Expecting(() => { _fooServiceMock.Expect(x => x.FooMethod()).Return(fooMockData); }).Verify(() => { }); I perform a R# code cleanup, which changes the code as…
lance
  • 16,092
  • 19
  • 77
  • 136
3
votes
1 answer

Can I make R# intellisense select the first list item?

I'm using ReSharper 5.1 in VS2010, and I've been annoyed by the intellisense behavior for quite a while. It seems this is different since R# 4.5/VS2008, but I don't have that combo handy to verify. Let's say I'm typing some code: ... public Guid…
Matt Mills
  • 8,692
  • 6
  • 40
  • 64
2
votes
2 answers

ReSharper 5.1 can't navigate to a type from anywhere

I'm running Visual Studio 2010 (10.0.40219.1 SP1Rel) with ReSharper 5.1 (5.1.3000.12). Recently, it seems as though ReSharper has completely lost the ability to navigate to a type. Here are some actions I can take in the UI that now do…
2
votes
2 answers

How do I extract the contents of a string within a ReSharper Pattern?

I've got the following problem: I want to replace a hardcoded string which contains a property name with a LINQ member expression // like this: NotifyOfPropertyChange("MyProperty"); // becomes NotifyOfPropertyChange(() => MyProperty); with a…
1
vote
1 answer

Run all test in file with ReSharper 5.x and VS2010

Is there a way I can tell the R# (5.x) test runner to run all the MSpec specs in the current file? Something like the Ctrl+R + Ctrl+T shortcut of the Visual Studio test runner is what I'm after, be it a shortcut or a context menu command.
1
vote
2 answers

How to Cleanup .Designer files using ReSharper?

Code Cleanup option isn't available in .Designer files. Is there any option to enable this feature?
Sadegh
  • 4,181
  • 9
  • 45
  • 78
1
vote
2 answers

VS: cursor position when override method is generated

My cursor (the pipe) is inside the body of the child class. public class BarContext : FooContext { | } I type "override" and press tab to view a list of methods in FooContext which I can override. "Context" is one of the options, so I select…
lance
  • 16,092
  • 19
  • 77
  • 136
1
vote
1 answer

ReSharper search pattern: "Can not parse pattern"

R# 5.1.1751.8 When I perform a pattern search for... catch (Exception e) {} ...I'm shown an error dialog which says "Can not parse pattern". What about that pattern cannot be parsed? What am I doing wrong?
lance
  • 16,092
  • 19
  • 77
  • 136
1
vote
2 answers

Resharper bug when referencing silverlight assembly from CLR class library

I'm starting with a new application using silverlight and the first problem I have with Resharper is in my unit test project. My configuration is: -> Resharper 5.1.1727.12 -> MyProject.Tests (CLR 4.0) nunit.framework.dll (CLR 2.0) moq.dll (CLR…
andrecarlucci
  • 5,927
  • 7
  • 52
  • 58
0
votes
2 answers

Resharper 5 vs 6

Back when I had ReSharper 5 my files would have all kinds of syntax highlighting and a bar next to the scrollbar to the right. It was wonderful because it would highlight redundant imports and possible code smells, as well mark things in the bar…
0
votes
0 answers

Disable Parenthesis Auto Complete in Visual Studio with Resharper

Possible Duplicate: ReSharper and auto closing parentheses I love resharper but as an example: When i type in [Faultcontract and then ( it automatically puts in ) and puts my cursor after the ) which is undesirable because i want to type…
JDPeckham
  • 2,414
  • 2
  • 23
  • 26