resharper

How do I keep Resharper Files out of SVN?

余生长醉 提交于 2019-11-30 01:59:23
问题 I am using VS2008 and Resharper. Resharper creates a directory _Resharper.ProjectName. These files provide no value for source control that I am aware of and cause issues when committing changes. How can I get SVN to ignore them? I am using TortoiseSVN as my interface for SVN. EDIT: You guys are fast. 回答1: Here's a link to show the ignoring process in TortoiseSVN 回答2: Add the file names (or even the pattern _Resharper.* ) to the svn:ignore property for its parent directory. 回答3: Gonna post an

Find Unused public functions

≡放荡痞女 提交于 2019-11-30 01:33:19
Is there a way to automatically find all unused public functions in a solution? I have resharper, and right now I have to do a "find usages" on each symbol, which is tedious--it seems like there should be a better way Of course there's a better way. Here's what you should do if you use ReSharper 4.5 or later: Go to ReSharper > Options > Code Inspection > Inspection Severity. Scroll down to "Unused symbols" category and set all containing items called "Non-private accessibility" to be shown - whether they're shown as hints, warnings, or suggestions is not relevant and is entirely up to you. In

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

百般思念 提交于 2019-11-30 01:07:39
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 code to reference , but that post did not explain HOW to attach external sources. JAWspeak This is

backup and restore ALL resharper settings

不打扰是莪最后的温柔 提交于 2019-11-29 23:12:41
How can I backup and later restore (after a clean install) ALL resharper settings? On XP Resharper stores its settings in: %userprofile%\Application Data\JetBrains\ReSharper\[R# Version]\[VS Version] and of Vista/7: %userprofile%\AppData\Roaming\JetBrains\ReSharper\[R# Version]\[VS Version] where [R# Version] is the version of ReSharper installed (e.g. v4.5) and [VS Version] is your Visual Studio version (e.g. vs9.0). Just copy all the files from that folder to backup, and put them back there to restore. 来源: https://stackoverflow.com/questions/2175348/backup-and-restore-all-resharper-settings

Visual Studio removes line break on start

倖福魔咒の 提交于 2019-11-29 23:05:49
I have the problem that Visual Studio (or maybe Resharper?) removes line breaks when I try to start my application. This happens in a way that when I press F5 or click on the run button with the mouse that a line break at the line where the cursor was the last time will be removed which is extremely annoying. I have not tried so many things yet because I really don't know where to start. I never experienced this problem before and was always working with the same setup: Visual Studio 2010 Resharper 6.1.1 Other plugins I use but which were installed after the problem (so I think they should not

Any way to surround code block with Curly Braces {} in VS2008?

寵の児 提交于 2019-11-29 22:49:59
I always find myself needing to enclose a block of code in curly braces { } , but unfortunately that isn't included in the C# surround code snippets, which seems to be an oversight. I couldn't find anything on building your own surround snippets either (just other kinds of snippets). I am actually running Resharper too, but it doesn't seem to have this functionality either (or I haven't figured how to activate it). We have a coding standard of including even a single line of code after an if or else in curly braces, so if I could just make Resharper do that refactoring automatically that would

Keyboard shortcut to close all tabs but current one in Visual Studio?

倾然丶 夕夏残阳落幕 提交于 2019-11-29 22:45:50
Does anyone know a keyboard shortcut to close all tabs except for the current one in Visual Studio? And while we're at it, the shortcut for closing all tabs? Is there a Resharper option for this? I've looked in the past and have never been able to find it. Aaron Jensen I don't think there is one by default, but you can go to Tools>Options>Environment>Keyboard and bind a key to File.CloseAllButThis. I use ctrl + alt + w By default, the command File.CloseAllButThis does not have a keyboard binding. You can set one up yourself though, as shown here: In this example, I'm going to map CTRL + SHIFT

ReSharper - force curly braces around single line

 ̄綄美尐妖づ 提交于 2019-11-29 22:44:42
Can I configure ReSharper to fix C# code when curly braces are not used to surround a single-line code block, like this: if (blnSomeCondition) DoSomething(); // complain if (blnSomeOtherCondition) { DoSomethingElse(); // don't complain } Thanks In the new version of ReSharper (2016.x) is has been moved to the Code Style. UPD1: for ReSharper 2017.x UPD2: for ReSharper 2018.x UPD3: for ReSharper 2019.x Ryan is correct (note however that the his link refers to R# 2.0 help). The specific procedure is as follows: Go to ReSharper > Options > Languages > C# > Formatting Style > Braces Layout Set

Disable code analysis for current file in ReSharper

做~自己de王妃 提交于 2019-11-29 22:42:11
In ReSharper 4.x there was a shortcut (Ctrl+8) for turning off the code analysis for the current file, but I cannot find the equivalent in ReSharper 5.0. Anyone knows where to find it? The reason I want this is because I want to disable ReSharper when editing XAML-files (because it's just incredibly slow...), and I don't want to go through the dialog under "Options > Code Inspection > Settings > Edit items to skip" for each and every xaml-file. And I want to turn it back on temporarily when I need the code inspection. BenW Ctrl + Shift + Alt + 8 ? This shortcut is bound to the ReSharper

Resharper move line up down not working

对着背影说爱祢 提交于 2019-11-29 22:05:15
I can't make it working, move line up or down doesn't work. When I reset keyboard for VS and applay scheme for Resharper it ask me for this : and if I take first selection , then alt + up switch me between methods, if I use second selection then this combination does not effects. Alt + Up is not a ReSharper shortcut to move a line. It most likely belongs to the Productivity Power Tools extension, that has a feature to move one or more (selected) lines. Personally, I don't like this feature in PPT, since it will just move the line(s), regardless of their scope, causing compilation errors. I