resharper

VS 2010: Can’t insert mvvm-light snippet using shortcut - incompatibility with resharper 5?

匿名 (未验证) 提交于 2019-12-03 08:56:10
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i recently installed some snippets that come with the mvvm-light framework i am using. And sure enought i checked via Tools > Code Snippet Manager and they are installed under "My Code Snippets". If i do insert Snipper (right click in code window) or CTRL K + CTRL X then i can search within all available snippets.... But i do believe its possible to just type the shortcut key (in this case it is mvvmlocatorproperty) and pressing tab inserts the snippet BUT when i type the shortcut key it is not recognizing anything... What am i doing wrong??

T4MVC and Resharper Navigation

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I frequently use Resharper's 'Go to Declaration' (ctrl + b in the Resharper Default Keymapping) keyboard shortcut to help with navigation within VS2010. Before I included a reference to T4MVC in my application, I would use "string refrences" and Resharper would know where I 'meant' to go. For example: @Html . Partial ( "_Continents" ) When I would use ctrl+b on the string "_Continents" , Resharper knew I wanted to go to the partial view named _Continents.cshtml. Since I have started using T4MVC, the same snippet above could be

How to resolve Resharper's “unused property” warning on properties solely for Display/Value Members?

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have defined two properties "Name" and "ID" for an object which I use for the DisplayMember and ValueMember of a ComboBox with a BindingList datasource. I recently installed Resharper to evaluate it. Resharper is giving me warnings on the object that the two properties are unused. Sample code: BindingList < ClassSample > SampleList = new BindingList < ClassSample >(); // populate SampleList cmbSampleSelector . DisplayMember = "Name" ; cmdSampleSelector . ValueMember = "ID" ; cmbSampleSelector . DataSource = SampleList ; private

ReSharper Unit Test not run in bin directory

匿名 (未验证) 提交于 2019-12-03 08:33:39
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Preamble I know, that this question seems to have anwsers here: Resharper runs UnitTest from different location Resharper Unit Test Runner Can't Find Content Files I have nearly the same problem like ReSharper 10 test runner failing to find AppSettings referenced from external file . But these answer stated, that the problem should be gone with ReSharper 10.0.2 Question I included a custom.xml files with custom settings, and I need to read them from my unit test. But my file is not found. I looked, where the process runs, and included this

Get Resharper to Consume StyleCop configuration

送分小仙女□ 提交于 2019-12-03 08:29:34
问题 Our project already has a StyleCop configuration. I am using ReSharper and I would like to be able to have R# use the StyleCop settings. I know that you can use StyleCopForResharper to build the settings in Resharper and export them as a StyleCop configuration, but can you do the reverse and have Resharper consume the existing StyleCop config? 回答1: I am not sure is this post still actual. There is free StyleCop for ReSharper at CodePlex. It uses StyleCop assembly so it will use project file

如果不用 ReSharper,那么 Visual Studio 2019 能还原 ReSharper 多少功能呢?

我们两清 提交于 2019-12-03 08:28:24
原文: https://blog.csdn.net/WPwalter/article/details/100158000 本文只谈论 ReSharper 的那些常用功能中,Visual Studio 2019 能还原多少,主要提供给那些正在考虑不使用 ReSharper 插件的 Visual Studio 用户作为参考。毕竟 ReSharper 如此强大的功能是建立在每年缴纳不少的费用以及噩梦般占用 Visual Studio 性能的基础之上的。然而使用 Visual Studio 2019 社区版不搭配 ReSharper 则可以免费为开源社区做贡献。 本文内容 完美还原 无处不在的智能感知提示 在输入时即自动导入需要的命名空间 提取局部变量 重命名标识符(类名/方法名/属性名/变量名等) 可以还原 依然不足 大量的代码片段 本文的内容分为三个部分: Visual Studio 能完全还原的 ReSharper 的功能 可能 Visual Studio 在此功能上已经追赶上了 ReSharper 可能 Visual Studio 在此功能上虽然依然不如 ReSharper 完善,但缺少的部分几乎不影响体验 可能 Visual Studio 此功能比 ReSharper 更胜一筹 Visual Studio 能部分还原 ReSharper 的功能 可能在多数场景中 Visual

Visual Studio 2015: Disable Control+Click Navigation

懵懂的女人 提交于 2019-12-03 08:22:09
问题 After upgrading to Visual Studio 2015, holding control while clicking on a symbol navigates to that symbol definition. In prior versions, this would instead select the entire word. How can I disable the navigation event when Control+Click(ing) a symbol, so that it highlights the word? I do have Resharper (Ultimate 9.2) installed. The configuration option under Environment -> Search & Navigation -> Go to Declaration on Control + Click in the editor is not checked. All the search engine results

How to reorder type members with Resharper?

丶灬走出姿态 提交于 2019-12-03 08:06:11
问题 Typical scenario: a class that a lot of people have worked on. I'd like to sort methods, properties, etc... in alphabetical order. I'd like to be able to do this within the region or globally in the class. I see the feature in Resharper to do it, but it does not seem to do anything. 回答1: Use the "Cleanup Code" functionality. The order of the members can be set up in the ReSharper options in Languages, C#, Type Members Layout. This is a well documented XML layout specification which ReSharper

Visual Studio dump all properties of class into editor

≡放荡痞女 提交于 2019-12-03 07:41:45
Ok, here is one for the people that have lots of handy little add ins for visual studio, or can help with a keypress sequence. Let's say I have a Person class: class Person { string Name { get; set; } int Age { get; set; } } And I'm busy coding away happily. I often get the situation where I need to assign values to all the properties of that class, or assign all the values of the properties to something else. public override void CopyTo(Person myPerson) { myPerson.Name = "XXX"; myPerson.Age = 11; } I would like to generate this part: myPerson.Name myPerson.Age I.e. Just dump all the

How to make Resharper format line-wrapped ternary operators in the following way

戏子无情 提交于 2019-12-03 07:24:08
I really want Resharper to format my line-wrapped ternaries in this way return navigator.IsTerminating ? navigator.Context : navigator.Context.GetSimulatableRelative(new Navigator(navigator)); Can anyone help with this? I don't think there is an out of the box way of doing this. The only way i know to influence how R# formats code is through these settings: Resharper --> Options... --> Langauges --> C# --> Formatting Style This doesn't allow you to write your own custom formatting rules though. If you feel like a challenge then you could write a plugin. There is some docs and an SDK: Developer