Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

After an update, Reshaper is modifying my *.sln.DotSettings which is shared with my team. How can I set reshaper to modify GlobalSettingsStorage.DotSettings or .sln.DotSettings.user instead ? <s:...
Yvain's user avatar
  • 1,002
0 votes
0 answers
43 views

I'm looking for a way to format unit test code. My goal ist to have mock verifies on a seperate line. This: messageProducer.Verify( x => x.Send( It.IsAny<SendMessage>(), It.IsAny<...
musium's user avatar
  • 3,102
0 votes
1 answer
134 views

Resharper shows this error "Line break is missing around parenthesis": But I have disabled the inspection: And I adjusted the formatting style, so that there shouldn't have to be a line ...
Rico-E's user avatar
  • 1,864
0 votes
0 answers
43 views

I understand that Resharper's spell checker has a user dictionary which can be set in foo.sln.DotSettings and foo.sln.DotSettings.user. This allows you to add additional words so they won't be ...
Ed Avis's user avatar
  • 1,622
0 votes
2 answers
34 views

When I run ReSharper cleanup code on a project, it adds a plus (+) sign. Is this a feature, or how do I disable it? <?xml ver.......> + <!-- ... ... -->
Magnus Calmervik's user avatar
0 votes
0 answers
60 views

I wonder, if it is possible to define rules in Resharper, such that, if a Lambda capture a parameter by reference, a warning would be issued? This is to prevent usage of the Lambda in a later stage, ...
athos's user avatar
  • 6,517
1 vote
1 answer
36 views

Say I have a property implementing INotifyPropertyChanged: public WhichHandle LastHandleFC { get => _lastHandleFc; set => SetField(ref _lastHandleFc, value); } I can replace with regex: ...
Soleil's user avatar
  • 6,852
0 votes
1 answer
58 views

There already is a question pretty close to this but not exactly: ReSharper - force curly braces around single line ReSharper always suggests to invert if loops in order to prevent too much nesting. I ...
Man-D's user avatar
  • 1
1 vote
0 answers
73 views

I have Visual Studio 2022, and Resharper Ultimate. I work on game mods, so I often need to look at the original code in order to make decisions. Generally, this comes in the form of decompiled sources....
Kaito Kid's user avatar
  • 1,123
-1 votes
1 answer
33 views

Whenever i run the re-sharper code cleanup on my file in VisualStudio the following happens: var somevariable = 5 is modified to IVariableType someVariable = 5 or var variable = new TypeClass() is ...
RiriB's user avatar
  • 1
0 votes
1 answer
86 views

I installed Resharper 2024 in Visual Studio 2022. Usually after installing Resharper, the suggestion of VS are disabled completely but in this case, it appeared. You can see in the screenshot below. I ...
hmahdavi's user avatar
  • 2,392
0 votes
0 answers
69 views

This below code will return the following error:Could not load file or assembly 'txic' or one of its dependencies. An attempt was made to load a program with an incorrect format. using System; using ...
Rubber's user avatar
  • 117
0 votes
0 answers
46 views

I'm trying to scan my c# project, to find out which lines have implicit type conversions, then export results to something like a xml file. ReSharper is a probable resolution.I installed the ReSharper ...
Icy's user avatar
  • 21
1 vote
2 answers
120 views

I'm working with Rider/ReSharper and formatting C# code in block style to improve readability. I can't find (in the settings or on the internet) a way to format LINQ statements as follows: static Game&...
Glendon Klassen's user avatar
1 vote
1 answer
166 views

I am trying to create a create method which will insert rows into my database. Table This is my database table. As you can see it has an accountId column CREATE TABLE [dbo].[Transactions]( [Id] [...
Linda Lawton - DaImTo's user avatar
0 votes
0 answers
20 views

I am using Visual Studio 2022 with the Resharper plugin. I am unsure which of these two is causing the issue. I am working on a Razor Page in a Blazor project (.razor file) I start typing an html ...
Daniel Barnes's user avatar
0 votes
0 answers
64 views

I updated ReSharper yesterday to version 2024.3.20241113.1046. Now I get tons of formatting errors. I looked through all of the resharper code format options, but I cannot figure out how to tell ...
Rico-E's user avatar
  • 1,864
0 votes
1 answer
109 views

We have .NET 8 C# classes that inherit from Event and Command. It would be nice to see the Something : Event class in a different color within the IDE. Is there a R# plugin that can color classes ...
Michael Blake's user avatar
1 vote
1 answer
95 views

I have a unit test including a stopwatch measuring the execution time of certain .NET library calls. I get significantly shorter execution times when I start the unit test from ReSharper Test Session ...
Ferenc Papp's user avatar
0 votes
1 answer
310 views

I am facing an issue where the .runsettings file is not affecting the execution of my tests when I run them through the ReSharper test runner. However, when I run the tests using Visual Studio’s built-...
Roy Guggenheim's user avatar
1 vote
2 answers
563 views

I am using ReSharper 2024.2 and still I get the suggestion that I should not be using the following code: public async Task<T> GetQueryAsync<T>(string query, bool isToBeValidated = ...
csharpforevermore's user avatar
2 votes
1 answer
112 views

I have hundreds occurences of this kind of lines in my app : public ICommand MyCommandName => ReactiveCommand.Create(TriggerCommand); I tried without luck to add a Custom Pattern in resharper to ...
Whiletrue's user avatar
  • 645
0 votes
0 answers
85 views

I have this code: which gets automatically reformatted into one long line and it is driving me nuts. When I open resharper's options (no matter which cs-file), it says: Which apparently means that ...
iakob's user avatar
  • 443
0 votes
1 answer
232 views

In a VS2022 C# project, how can I get (copy) the full error message from the compiler? For example, when an ambiguity is found, it looks like this in the editor window: But in the Error List window ...
Xan-Kun Clark-Davis's user avatar
5 votes
0 answers
69 views

I have the following line of code. if (_lazyHeightMap.IsValueCreated && _lazyHeightMap.Value is { IsEmpty: false }) I make the first check because I do not want my code to attempt to retrieve ...
Joe's user avatar
  • 7,194
0 votes
2 answers
60 views

I have this code: public interface IMyClass { void DoStuff(); int MyProperty { get; set; } } public class MyClass : IMyClass { public void DoStuff() {} public int MyProperty { get;...
Peter Poulsen's user avatar
0 votes
1 answer
51 views

I'm using ReSharper 2024.1.2 on a C++ VS2022 project. I have an issue with something very basic, but I couldn't find a solution. When I type auto-complete a method name, the cursor gets between the ...
Frozax's user avatar
  • 172
4 votes
0 answers
88 views

I'm using Visual Studio 2022 (with ReSharper 2024.1 but I don't think that's relevant) developing in .NET 8. My minimal repro is this: public class Program { public static void Main() { ...
AakashM's user avatar
  • 63.5k
1 vote
1 answer
206 views

I've recently installed ReSharper to my Visual Studio 2022, and when I use the "prop" + tab + tab to create a class property, I can rename the type and the property name normally. The ...
Matheus da Silva Rosa's user avatar
2 votes
2 answers
121 views

Given the following: var nums = GetNums(); Console.WriteLine(nums.Any()); Console.WriteLine(string.Join(", ", nums)); static IEnumerable<int> GetNums() { yield return 1; ...
Amber Cahill's user avatar
0 votes
1 answer
164 views

I'm working on several projects across different Git repositories, and I want to maintain a consistent ReSharper configuration across all of them. To achieve this, I'm considering storing the ...
Tal B's user avatar
  • 1
0 votes
1 answer
47 views

When I write js code in visual studio, sometimes stange 'require' headers was added to the header of my js file, I don't know whether it was done by visual studio or resharper(this is the only ...
Abot Me's user avatar
  • 1,543
1 vote
1 answer
161 views

I love how Resharper offers to import namespaces when I put in code from them. But for this particular, namespace ("OpenCvSharp"), I actually want to prevent it from being imported because ...
Joe's user avatar
  • 7,194
0 votes
1 answer
582 views

I have written a series of tests against the front end of my web application. I really wanted to know what my test coverage looked like, so I downloaded and installed ReSharper and dotCover. These ...
BoilermakerRV's user avatar
0 votes
1 answer
236 views

Sometimes ReSharper's IntelliSense just stops working for no reason until I manually invoke it, then it continues to operate as if nothing happened. Has anyone experienced this issue?
kasten's user avatar
  • 5
0 votes
1 answer
27 views

As the title says, it's frustrating since the behaviour is different from stock Visual Studio. I also couldn't find a setting for it anywhere. I'd like the cursor to stay where it is when I comment ...
lolgube010's user avatar
0 votes
1 answer
74 views

When I use German words for my variable names and these include umlauts or special characters, I write those out so the names are completely written in the normal latin alphabet. ReShaper marks those ...
Marormur's user avatar
  • 145
0 votes
1 answer
75 views

I have a Rider plugin that gets the local path of the opened file in Rider. It is a context menu button. It is now only able to get the path of certain project files such as C# files. It is not able ...
zubair Ahmad's user avatar
0 votes
1 answer
61 views

We use TeamCity Professional 2024.03 (build 156166) on-premises. The code inspection step does not apply the naming rules described in CleanCode.sln.dotsettings according to a consistent scheme. We ...
JohnnyKuna's user avatar
0 votes
1 answer
263 views

It is not a duplicate question. Because my question asks why Resharper stopped making spaces, however, another question is asking how to add spaces. It is two different questions. I've set a settings ...
StepUp's user avatar
  • 38.5k
0 votes
1 answer
124 views

In Rider Resharper suggests to simplify string interpolation. When doing so, the Heap Allocation Viewer plugin warns me about boxing allocation. And indeed, the IL code is different and when running ...
Meister der Magie's user avatar
0 votes
1 answer
236 views

I have a solution with many projects in it. Two projects both have a class with the same name. Lets call them project A and project B. When i use resharper rename feature (Ctrl+R -> R) in project B ...
veteri's user avatar
  • 123
1 vote
2 answers
85 views

I have this line of code somewhere: Sys.Attribute? testClassAttribute = Helpers.TryGetAttributeByFullName( type, "Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute" ); ...
Mike Nakis's user avatar
0 votes
1 answer
71 views

I currently get red squiggly lines for a non-explicit converting constructor. That's superb! My colleagues want that, too. Where the heck did I configure that? I am quite sure that this is a Jetbrains ...
Thomas Weller's user avatar
0 votes
1 answer
46 views

After i accept Resharper InteliSense autocomplite, all my wrapped regions become opened and caret return to first line of code in xaml and c# code. How to deal with it? i didnt found in reshaper ...
melesou's user avatar
0 votes
1 answer
262 views

When I using pessimistic value analysis mode, I got hundreds of null related warning. I want to remove them in a non-invasive way. For example, there is a method in my source code, and I want to ...
White Wing's user avatar
1 vote
1 answer
65 views

Im kind of new to resharper; but old on c# I have a problem with the resharper config and on my team no ones knows how to solve it. I have this: [Required] public ushort SemanticId { get; set; } ...
Gabriel Alfredo's user avatar
1 vote
0 answers
680 views

We're using the latest (currently 2023.3.3) versions of JetBrains ReSharper/ReSharper C++ on our workstations along with "JetBrains Floating License Server" to handle licensing. We're using ...
mwallner's user avatar
  • 1,090
1 vote
1 answer
527 views

I am using a fresh install of VS2022 (17.8.6) and ReSharper (2023.3.3). When editing a source file, the keyboard shortcut Ctrl + [, S does not behave as expected according to the docs. It should ...
Hugh W's user avatar
  • 1,362
0 votes
1 answer
42 views

Just started using Resharper file templates, but the quick list has more menu entries than I would expected. Please see the following screenshot. Left side shows what I have configured for the ...
me.at.coding's user avatar
  • 18.5k

1
2 3 4 5
100