resharper-4.5

How to reset the “Don't show this dialog again” settings for Visual Studio and ReSharper

浪尽此生 提交于 2020-01-22 17:50:18
问题 In a Visual Studio project (C#), I attempted to perform a rename of a namespace using the ReSharper shortcut ( Ctrl + R + R ). However, because I had branched some of the files that used the namespace from another location in the source control system, they had the readonly attribute set on them. Consequently, I received a dialog which contained "Sorry, apparently I can't post an image because I'm a new user": The file TestFile.cs which you attempted to edit, is readonly on disk. Would you

How to prevent ReSharper from shortening namespaces when adding using directives?

你离开我真会死。 提交于 2019-12-21 07:56:08
问题 When I use ReSharper to add a using directive (using Alt+Enter) it removes "unnecessary" parts of the namespace. I prefer using the full namespace which is also the behavior of Visual Studio. Example: namespace MyCompany.MyTool.Data { // This is what ReSharper gives me: using Core; // This is what I want: using MyCompany.MyTool.Core; // ... } Which setting do I have to change in ReSharper 4.5 so it uses the full namespace? 回答1: I don't have ReSharper 4.5 installed at the moment, but in 5.0

Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE?

荒凉一梦 提交于 2019-12-06 05:57:51
问题 Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE? For example, this will show up as two items in the TODO explorer: // NOTE: Because of the external dependency, this method is particularly bug-prone. // NOTE: Once we've adopted automated testing, we could get some nice testing for this stuff using a repository to mock an actual account. Is there a way to make it show up as a single item without writing it on one really long line? 回答1: Unfortunately, it does not look

How can Resharper be made aware of the framework version?

核能气质少年 提交于 2019-12-04 15:52:30
问题 I am coding in VS2008 with Resharper 4.5.1, but the projects are set to target .NET Framework 2.0. Still, Resharper is making suggestions that are relevant to the .NET 3.5 framework. For instance, it tells me that I should be using collection initializers, etc... I've looked through the settings and can't seem to find the checkbox to tell it to give 2.0 specific advice. 回答1: Select your project in the Solution Explorer and open the Properties tool window ( F4 in the standard keyboard layout

Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE?

霸气de小男生 提交于 2019-12-04 10:58:14
Is there a way to make Resharper 4.5 understand a multi-line TODO or NOTE? For example, this will show up as two items in the TODO explorer: // NOTE: Because of the external dependency, this method is particularly bug-prone. // NOTE: Once we've adopted automated testing, we could get some nice testing for this stuff using a repository to mock an actual account. Is there a way to make it show up as a single item without writing it on one really long line? Unfortunately, it does not look like you can. Even the ReSharper 5 beta does not color code multi-line TODO or NOTE comments the way you

How to prevent ReSharper from shortening namespaces when adding using directives?

落花浮王杯 提交于 2019-12-04 02:33:24
When I use ReSharper to add a using directive (using Alt+Enter) it removes "unnecessary" parts of the namespace. I prefer using the full namespace which is also the behavior of Visual Studio. Example: namespace MyCompany.MyTool.Data { // This is what ReSharper gives me: using Core; // This is what I want: using MyCompany.MyTool.Core; // ... } Which setting do I have to change in ReSharper 4.5 so it uses the full namespace? I don't have ReSharper 4.5 installed at the moment, but in 5.0 there's an option at the Namespace Imports pane called Prefer fully qualified using name at nested scope . It

How to reset the “Don't show this dialog again” settings for Visual Studio and ReSharper

自古美人都是妖i 提交于 2019-12-04 02:16:40
In a Visual Studio project (C#), I attempted to perform a rename of a namespace using the ReSharper shortcut ( Ctrl + R + R ). However, because I had branched some of the files that used the namespace from another location in the source control system, they had the readonly attribute set on them. Consequently, I received a dialog which contained "Sorry, apparently I can't post an image because I'm a new user": The file TestFile.cs which you attempted to edit, is readonly on disk. Would you like to make the file writeable or edit it anyway? Checkbox: Don't show this dialog again (Never allow in

How can Resharper be made aware of the framework version?

邮差的信 提交于 2019-12-03 10:54:38
I am coding in VS2008 with Resharper 4.5.1, but the projects are set to target .NET Framework 2.0. Still, Resharper is making suggestions that are relevant to the .NET 3.5 framework. For instance, it tells me that I should be using collection initializers, etc... I've looked through the settings and can't seem to find the checkbox to tell it to give 2.0 specific advice. bdukes Select your project in the Solution Explorer and open the Properties tool window ( F4 in the standard keyboard layout or View > Properties Window after selecting the project). In the ReSharper section, there is a

Is there a way to mark up code to tell ReSharper not to format it?

半城伤御伤魂 提交于 2019-11-28 10:40:22
I quite often use the ReSharper " Clean Up Code " command to format my code to our coding style before checking it into source control. This works well in general, but some bits of code are better formatted manually (eg. because of the indenting rules in ReSharper, things like chained linq methods or multi-line ternary operators have a strange indent that pushes them way to the right). Is there any way to mark up parts of a file to tell ReSharper not to format that area? I'm hoping for some kind of markup similar to how ReSharper suppresses other warnings/features. If not, is there some way of

Is there a way to mark up code to tell ReSharper not to format it?

[亡魂溺海] 提交于 2019-11-27 05:53:39
问题 I quite often use the ReSharper "Clean Up Code" command to format my code to our coding style before checking it into source control. This works well in general, but some bits of code are better formatted manually (eg. because of the indenting rules in ReSharper, things like chained linq methods or multi-line ternary operators have a strange indent that pushes them way to the right). Is there any way to mark up parts of a file to tell ReSharper not to format that area? I'm hoping for some