resharper

What are some alternatives to ReSharper? [closed]

若如初见. 提交于 2019-11-27 05:52:48
I'm considering purchasing a ReSharper license, but are there any possible alternatives to ReSharper and how would you rate these compared to ReSharper? It doesn't necessarily have to be a free alternative, but I would just like to know how good equivalent products are. Patrick Karcher The main alternative is: CodeRush , by DevExpress. Most consider either this or ReSharper the way to go. You cannot go wrong with either. Both have their fans, both are powerful, and both have talented teams constantly improving them. We have all benefited from the competition between these two. I won't repeat

Visual Studio displaying errors even if projects build

南笙酒味 提交于 2019-11-27 05:52:01
I have a problem with Visual Studio on a C# solution. It displays totally random errors, but the projects build. Right now, I have 33 files with errors, and I can see red squiggly lines in all of them. I tried cleaning / rebuilding the solution, closing Visual Studio and even restarting my computer. I also made sure to do the steps described in Debugging runs even with compiler's errors in Visual Studio. I can modify .cs files and I see the changes in the solution. Does anyone have an idea about why it does that? If you have ReSharper, try emptying the ReSharper cache: In menu, ReSharper >

A tool like ReSharper, but for Java? [closed]

左心房为你撑大大i 提交于 2019-11-27 05:23:59
问题 I have read a lot about ReSharper on here. It sounds like it has a lot of cool features to help the programmer out. Trouble is, I don't write C#. Is there any tool that has similar functionality to ReSharper, but for Java instead? Thank you! 回答1: Use IntelliJ IDEA an IDE from JetBrains - the creator of ReSharper. It's not "like resharper" - it's the original and resharper is like it for C#. 回答2: I believe most Java IDEs already have it - I certainly view ReSharper as the tool which brings

Resharper Alt Enter not working

淺唱寂寞╮ 提交于 2019-11-27 05:00:32
问题 Help, I can't function without Resharper . All of a sudden my Alt + Enter ↵ shortcut (to bring up the action list) has stopped working. Anybody experienced this or know how to fix? 回答1: Symptom A: the menu pops up for a split second, then goes away. Fix using the following steps in numerical order. Symptom B: pressing Alt + Enter ↵ does nothing. Fix using Step #2 first then try Step #1 if the issue persists. Perform a Visual Studio reset: Run cmd.exe as Administrator cd C:\Program Files (x86)

vs运行测试时显示的超时错误

二次信任 提交于 2019-11-27 04:49:03
在使用Visual studio 2019 Community运行测试的时候,产生了如下报错: 未能协商协议,等待响应在 90 秒后超时。出现此问题可能是因为计算机性能较低,请设置环境变量 VSTEST_CONNECTION_TIMEOUT,增加超时时间值。 非常奇怪的是,同样的项目,换一个开发环境(装有Ubuntu的阿里云服务器)就可以照常运行,于是乎怀疑是不是本机的Visual studio 2019 Community 2019出了问题。但是在本机使用CLI命令 dotnet test 依然报出同样的错误。 之前也遇到过这个问题,但是当时谷歌一番也没有找到合适的解决方案,在我决定放一放的时候,莫名其妙的好了(可能和VS2019版本更新有关)。 最近又遇到了这个让人头疼的问题,正值我增加测试代码的节骨眼上,本机无法运行测试用例大大增加了我的时间成本,让我非常头疼。于是乎又去谷歌一番寻找答案,可惜的是,无论中文英文,有关该问题的解决方案都很少。折腾一番依旧无果,在我准备重装开发工具Visual studio 2019 Community 2019的时候,偶然间我发现插件 ReSharper 也有运行测试的功能(之前使用VS自带的 测试资源管理器 ),但是令人匪夷所思的问题发生了,明明我是安装了 Microsoft.NET.Test.Sdk 这个Nuget包的

Visual Studio 2015 Enterprise with ReSharper 10 Ultimate — Cannot be properly resolved

爱⌒轻易说出口 提交于 2019-11-27 04:44:27
问题 I have Visual Studio 2015 Enterprise, version 14.0.24720.00 Update 1 as well as ReSharper 10 Ultimate, version 10.0.2 installed. I have a typescript file that is using AtScript syntax to refer to the Angular2 directive module, as its annotation. However, ReSharper is stating the following error: Symbol 'Directive' cannot be properly resolved, probably it is located in inaccessible module. Below is the full error tooltip. The application compiles and runs as expected, and the angular portions

Is Int32.ToString() culture-specific?

只谈情不闲聊 提交于 2019-11-27 04:43:58
I'm running a beta version of ReSharper, and it's giving me warnings for the following code: int id; // ... DoSomethingWith(id.ToString()); The warning is on the id.ToString() call, and it's telling me "Specify a culture in string conversion explicitly". I understand the warning, and I know how to fix it -- just change the code to the much more unwieldy id.ToString(CultureInfo.InvariantCulture) . But my question is: is that necessary? I mean, obviously it's important to specify the culture when you're using types like DateTime (different cultures have different date formats) and Double

Where do I mark a lambda expression async?

喜欢而已 提交于 2019-11-27 04:13:58
问题 I've got this code: private async void ContextMenuForGroupRightTapped(object sender, RightTappedRoutedEventArgs args) { CheckBox ckbx = null; if (sender is CheckBox) { ckbx = sender as CheckBox; } if (null == ckbx) { return; } string groupName = ckbx.Content.ToString(); var contextMenu = new PopupMenu(); // Add a command to edit the current Group contextMenu.Commands.Add(new UICommand("Edit this Group", (contextMenuCmd) => { Frame.Navigate(typeof(LocationGroupCreator), groupName); })); // Add

Why does ReSharper tell me “implicitly captured closure”?

爱⌒轻易说出口 提交于 2019-11-27 04:09:35
问题 I have the following code: public double CalculateDailyProjectPullForceMax(DateTime date, string start = null, string end = null) { Log("Calculating Daily Pull Force Max..."); var pullForceList = start == null ? _pullForce.Where((t, i) => _date[i] == date).ToList() // implicitly captured closure: end, start : _pullForce.Where( (t, i) => _date[i] == date && DateTime.Compare(_time[i], DateTime.Parse(start)) > 0 && DateTime.Compare(_time[i], DateTime.Parse(end)) < 0).ToList(); _pullForceDailyMax

Visual Studio or Resharper functionality for placement of using directives

好久不见. 提交于 2019-11-27 03:36:45
I like to put my using directives inside the current namespace, and not outside as VS and Resharper per default puts them. Does anyone know of a macro/standard functionality that sorts/removes unused using directives and puts them inside the current namespace? marklam UPDATE - ReSharper 2016.1 : This option is now moved to Code Editing → C# → Code Style → Add 'using' directive to the deepest scope Have you tried the ReSharper option: Languages → C# → Formatting Style → Namespace Imports → Add using directive to the deepest scope I'm not sure whether R#'s code cleanup will reorder the existing