resharper

Disable all Resharper warnings with a comment

倾然丶 夕夏残阳落幕 提交于 2019-11-29 01:02:54
Is there a way to disable all Resharper warnings for a file or section of code with a single comment? I'm trying to create some coding exercises for interviewing potential candidates, and the Resharper warnings give away the problem I want the candidate to spot :P Suppressing the specific warning still makes it obvious what the problem is. I still want to have Resharper available during the interview, I just want the candidate to spot this problem without Resharper spoiling the fun. edit : Sorry I'll try to be more clear about what I'm after. I don't want to permanently disable a particular

How to Restore Navigate To Dialog in Visual Studio After Resharper Installation

牧云@^-^@ 提交于 2019-11-29 00:17:50
问题 After installing Resharper 7.1.2 for Visual Studio 2010, when I press Ctrl + , I no longer see the Navigate To dialog. Instead a Resharper dialog Recent Files appears. My question is, is there another key binding that I am not aware for the Navigate To dialog or how can I configure Resharper/VS to show the Navigate To dialog upon pressing Ctrl + , . In the Resharper options I have selected Visual Studio for the key bindings since that is what I am accustomed to, but for some reason this one

ReSharper: setting C# language level for Solution

我只是一个虾纸丫 提交于 2019-11-28 23:53:29
问题 Further to this question, I have lots of projects inside a solution and I dont want to create a dotsettings file for each project. Can anyone help me set the C# Language Level on a solution level. This is relevant for me as I downloaded VS2015 today and ReSharper is offering me useful refactor suggestions based on targeting C# 6 and my projects are using C#5. 回答1: I added below settings in .sln.DotSettings <s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/

ReSharper for C++ [closed]

﹥>﹥吖頭↗ 提交于 2019-11-28 22:24:55
I know that there is ReSharper for C# for helping to program, is there something similar for C++? Update: The JetBrains are working on Resharper for C++ . While not quite as good for C++ as Resharper is for C#, Whole Tomato makes a product called Visual Assist X which handles C++ and does it in a reasonably performant manner. Developer Express also makes CodeRush , which provides more features than Visual Assist, but which is also a much harder drain on your computer, and also which occasionally makes mistakes -- most constructs using macros won't work correctly with CodeRush. Note that as of

Fastest way to update namespaces with ReSharper?

不羁岁月 提交于 2019-11-28 22:12:13
I have been doing some refactoring and reorganization and I have moved a bunch of files around. I want to update each file so it has the "correct" namespace according to its new location. With ReSharper, I can go into each file and it shows me that the namespaces is incorrect but that way I have to do it each file at a time. Is there anyway to update namespaces across every file in a folder or a project? UPDATE: Anyone reading this question with R#5.0 and above should note that this is now a feature : ReSharper -> Refactor -> Adjust Namespaces... This isn't quite what you want to do ... but

Cannot edit checked out file (TFS) in Visual Studio 2013

笑着哭i 提交于 2019-11-28 21:59:23
问题 Since I changed my windows password I can no longer type into a checked out file in Visual Studio 2013! Where before I just needed to start typing and it would check out the file in the background, now it won't even allow me to type into the file after I manually check the file out, from the solution explorer! It's as if VS 2013 is ignoring the keyboard on the project under source control. It's fine for other projects even project's under source control! I think I remember seeing this before

How to set up ReSharper to allow you to navigate to third-party DLL files and view source lines of code?

╄→гoц情女王★ 提交于 2019-11-28 21:17:47
问题 This confusing feature in ReSharper claims to let you browse external sources from within Visual Studio, see External Sources (ReSharper Web Help). But, I don't understand what values to set for the folder substitution option. (Resharper - Options - External Sources - Advanced) When I try navigating to source, I keep getting the message: PdbNavigator: No sources found in debugging information for in assembly (This is almost a duplicate of Stack Overflow question Visual Studio - Attach source

Resharper: Implicitly captured closure: this

烈酒焚心 提交于 2019-11-28 20:59:44
I am getting this warning ("Implicity captured closure: this") from Resharper: does this mean that somehow this code is capturing the entire enclosing object? internal Timer Timeout = new Timer { Enabled = false, AutoReset = false }; public Task<Response> ResponseTask { get { var tcs = new TaskCompletionSource<Response>(); Timeout.Elapsed += (e, a) => tcs.SetException(new TimeoutException("Timeout at " + a.SignalTime)); if (_response != null) tcs.SetResult(_response); else ResponseHandler += r => tcs.SetResult(_response); return tcs.Task; } } I'm not sure how or why it's doing so - the only

ReSharper (or something like it) for Visual C++? [closed]

感情迁移 提交于 2019-11-28 20:33:24
I've seen ReSharper recommended a lot Unfortunately, it doesn't support C++ in Visual Studio. Is there anything out there you can recommend? I already use Visual Assist, and it does its job very well, but it's quite limited in comparison with ReSharper. Any suggestions? Refactor Pro is available for Visual C++, this will give you some functionality. Also check out CodeRush, I think it also supports C++. Oleg IMHO - Visual Assist X is best but expensive code completion/refactoring tool for C++. VAX has not so much features as ReSharper for C#, but it makes your C++ programming easier and faster

Visual Studio not showing IntelliSense descriptions anymore

ε祈祈猫儿з 提交于 2019-11-28 20:33:15
Since a month ago, my VS doesn't seem to want to display the summary info in tooltips for any system methods or classes when I hover them with my mouse. I had ReSharper installed and started noticing this problem. I assumed that ReSharper disabled the default method descriptions, so I wasn't thinking much further about it, only considering it a mere annoyance. After removing ReSharper though, the problem persisted. VS now only shows descriptions for my own methods which I've added a <summary> tag for and any descriptions from NuGet packages, but not system methods like Where , Encoding