resharper

Qunit qunit-fixture div gets deleted running unit tests with Resharper 8

懵懂的女人 提交于 2019-12-10 17:45:58
问题 I have an issue that when I try to append or set up HTML code in the div id="qunit-fixture" when testing with Qunit running under ReSharper 8. The div id="qunit-fixture" is deleted for some reason. I need to test events specified in the document ready function but can not do so if I can not add the elements in the div id="qunit-fixture". Are there any solutions for this? 回答1: It does not get deleted. It is simply not there with the Resharper QUnit test runner! You can see for yourself when

How to stop ReSharper from inserting unnecessary newline between the assigned variable and chained method call

蹲街弑〆低调 提交于 2019-12-10 17:31:46
问题 I have a class that has some methods which return this , such that I can chain the calls together: public class Person { public string FirstName { get; set; } public string LastName { get; set; } public Person WithFirstName(string firstName) { FirstName = firstName; return this; } public Person WithLastName(string lastName) { LastName = lastName; return this; } } However when I chain enough methods together such that the Right margin (columns) setting in ReSharper, the expression is formatted

Rebind Control+LeftClick in Resharper

我怕爱的太早我们不能终老 提交于 2019-12-10 17:19:54
问题 I want Control+LeftClick in Resharper to be bound to 'Goto Implementation' instead of 'Goto Declaration'. This is because I work with lots of interfaces, and most of the time I want to visit the implementation not the interface declaration. Is there any way of doing this? I know about ReSharper | Options -> Environment | Search & Navigation to enable or disable the Go to declaration on <Control + Left click> . But I want to rebind the keyboard gesture, not disable it. 回答1: It's not possible

Jump between view and view model

蹲街弑〆低调 提交于 2019-12-10 17:07:50
问题 Is there a way to make Resharper or "just" Visual Studio (perhaps using a macro) jump between the view and the it's view model in the MVVM pattern. Like Resharper can jump between the xaml and it's codebehind using F7 and Shift-F7 I follow the convention that the files are located like this \Views\name\AbcView.xaml \ViewModels\name\AbcViewModel.xaml 回答1: Perhaps I should have googled first, here is a macro to do the same thing for .cpp and. .h files I changed it a bit and assigned the macro

How can I get Resharper to insert highlighted text on Intellisense listbox to editor when press enter?

旧巷老猫 提交于 2019-12-10 17:03:22
问题 As I am typing certain functions or variables, Resharper suggests a possible list (Intellisense) of names below my cursor. It will highlight the text on the suggested list box that it thinks is the closest to what I am typing. This is good. However, when the highlighted element on the list is correct, and I press enter, it goes to the next line. I thought it would be more intuitive if it inserts the highlighted text on the suggested list into where my type cursor is at on the editor. To get

Resharper Naming Exception for “iPhone”

大城市里の小女人 提交于 2019-12-10 16:45:28
问题 Is it possible to add an exception to Resharper naming conventions for a specific word? In particular, I'd like to be able to make an enum value "iPhone", even though I generally prefer PascalCase for enum values. I checked out Resharper's naming style documentation, but didn't see any way to add a custom exception. I also tried using the custom abbreviations list, but that only works for all caps. 回答1: You can't add an exception for specific word, but there's some kind of workaround. With

Resharper moving top brace next to if statement. How to have on new line?

陌路散爱 提交于 2019-12-10 16:12:50
问题 My Resharper 8 is auto formatting on the end brace. The top brace moves to the end of the IF statement line. How can I have it format to the next line. Starting statement if (condition) { var x = new foo(); } When the bottom brace is removed and retyped this is the result. The top brace moves to the end of the line above. if (condition) { var x = new foo(); } The desired result is the initial starting statement. How can I change the options in R#8 to fix this? I have tried changing options in

Can´t edit sourcecode in VS Texteditor when resharper is running

大憨熊 提交于 2019-12-10 15:04:02
问题 For some time I use Resharper in Visual Studio 12, but since a few days I have a problem. If Resharper running, I can not type anything in the source code editor in Visual Studio. I'm using the version 8.2.0.2160 and StyleCop version 4.7.49.0 All settings I have completely reset. I have also deleted the settings files. I have also uninstalled Resharper and StyleCop and reinstalled. Nothing helps! The strange thing is, that I (except C# and xaml) can probably edit in other files. Or when I

Resharper 9 File Layout: defining sort order when sorting by access modifier not possible?

北城以北 提交于 2019-12-10 14:56:12
问题 after installing R# 9.0 my custom file layout from 8.2 did not work anymore. I recreated the same pattern using the layout designer which is new in 9.0. The part I could not reproduce was the detailed ordering definition for properties using access modifiers: Pre-9.0 it looked like this: [...] <Sort> <Access Order="private public internal protected-internal protected"/> </Sort> [...] ... resulting in the properties being ordered as defined - especially: private first! In 9.0 when using the

Resharper 5 Beta - Goto Declaration (CTRL + Click) is not working

自古美人都是妖i 提交于 2019-12-10 14:23:10
问题 In Visual Studio 2010 Beta 2 with Resharper 5 Beta, Goto Declaration (CTRL + Click) is not working. Anybody has solution for that? I tried in google but couldn't find any solution yet. 回答1: You can also try the (free) extension I wrote that makes ctrl+click invoke Go To Definition: Go To Definition (on the VS Gallery), or download it from inside Visual Studio 2010 by going to the Extension Manager and searching for it by name (or for my name). 回答2: Its a beta it was broken. They have updated