resharper

Keyboard Shortcut for Hints

扶醉桌前 提交于 2019-12-05 02:57:02
usually when I select a hint such as refactoring a certain line that I am on, when the purple hint icon or the light bulb icon shows to the left, I click on it then select the refactoring I desire. I don't want to use my mouse. How do I get that dialog open on the left...really any dialog on the left that resharper unobtrusively shows you? Just trying to figure out a faster way than with my mouse. First thing is to figure out how to get that dialog up with the keyboard, not click on it with the mouse. I'm using ReSharper 6.1, not sure if it matters with keyboard shorctuts. Ctrl + Shift + R

Resharper and ViEmu Keybindings ( and Visual Assist )

别等时光非礼了梦想. 提交于 2019-12-05 02:15:18
With ViEmu you really need to unbind a lot of resharpers keybindings to make it work well. Does anyone have what they think is a good set of keybindings that work well for resharper when using ViEmu? What I'm doing at the moment using the Visual Studio bindings from Resharper. Toasting all the conflicting ones with ViEmu, and then just driving the rest through the menu modifiers ( Alt-R keyboard shortcut for the menu item ). I also do the same with Visual Assist shortcuts ( for C++ ) if anyones got any tips and tricks for ViEmu / Resharper or Visual Assist working together well I'd most

How to pull a method out of its class (and into a new or existing)?

扶醉桌前 提交于 2019-12-05 02:12:55
What is the easiest way of pulling an excisting method out of its class and into a new class using Visual studio 2010 / Resharper? Edit: I use Resharper version 5. Starting with public void Method() {} First, make the method static using the "Make Method Static" command. public static void Method(){} Then, add a local variable of the type of the new class: public static void Method(){Class2 me = new Class2();} Then, use Introduce Parameter public static void Method(Class2 me) {} Then use "Make Method non-Static". In class2: public void Method(){} Same as above, but I would not do the

List of Resharper Default Formatting and Rules

你离开我真会死。 提交于 2019-12-05 02:02:23
I'm trying to find a list of all the default formatting and rules that Resharper enforces. Unfortunately, I'm not having any luck. We use the tool, but want to provide a document of standards to new hires so they can view the standards prior to coding. Under the ReSharper menu, then Options, you'll find the current rules and conventions ReSharper is using for this solution. Of particular importance are: Code Inspection->Inspection Severity: Shows the severity of things that ReSharper detects in code. The more things that are warnings or errors, the more closely you will have to conform code to

Resharper installed, now no automatic code prompts in immediate window

放肆的年华 提交于 2019-12-05 01:58:50
I've become accustomed to using ReSharper, so uninstalling it is not an option. However 1 little thing that I would like to try fix is the immediate window, I used to get automatic intellisense prompts when for example typing myObject. That seems to no longer be working (and only in immediate window while debugging) since I installed ReSharper. Any ideas on how to get it back? Igal Tabachnik Unfortunately, if you're using the ReSharper intellisense (instead of the Visual Studio one), it won't work. I remember reading somewhere that this is a known issue due to a limitation in the Visual Studio

开发中常用的一些神器推荐

心不动则不痛 提交于 2019-12-05 01:46:31
目录: Resharper TortoiseGit SQLDiff tinypng.com 1、Resharper 简介 是一款Visual Studio 插件,能深度代码分析,智能代码协助,实时错误代码高亮显示,解决方案范围内代码分析,快速代码更正,一步完成代码格式化和清理,业界领先的自动代码重构,高级的集成单元测试方案,和强大的解决方案内导航和搜索。 支持的语言: ·C#:ReSharper 2019.2完全支持高达C#8.0的所有C#版本。 ·VB.NET、 TypeScript、C ++。 ·JavaScript : ReSharper完全支持JavaScript 直到ECMAScript 2016,包括实验性功能,例如异步/等待,指数运算符以及对象文字/解构中的休息/传播。 jQuery和JSX语法也受支持。 ·CSS ReSharper支持CSS直至4.0版本。 编码效率至少提高30%以上。缺点:占内存。 Resharper 类似的插件aiXcoder: aiXcoder支持的编程语言有 Java,Python,C++,Php,JavaScript,TypeScript,Go。支持的编辑器有IntelliJ IDEA,Eclipse,PyCharm,Android Studio,PhpStorm,WebStorm、Clion,sublime、Visual

开发中常用的一些神器推荐

孤街浪徒 提交于 2019-12-05 01:46:19
目录: Resharper TortoiseGit SQLDiff tinypng.com 1、Resharper 简介 是一款Visual Studio 插件,能深度代码分析,智能代码协助,实时错误代码高亮显示,解决方案范围内代码分析,快速代码更正,一步完成代码格式化和清理,业界领先的自动代码重构,高级的集成单元测试方案,和强大的解决方案内导航和搜索。 支持的语言: ·C#:ReSharper 2019.2完全支持高达C#8.0的所有C#版本。 ·VB.NET、 TypeScript、C ++。 ·JavaScript : ReSharper完全支持JavaScript 直到ECMAScript 2016,包括实验性功能,例如异步/等待,指数运算符以及对象文字/解构中的休息/传播。 jQuery和JSX语法也受支持。 ·CSS ReSharper支持CSS直至4.0版本。 编码效率至少提高30%以上。缺点:占内存。 Resharper 类似的插件aiXcoder: aiXcoder支持的编程语言有 Java,Python,C++,Php,JavaScript,TypeScript,Go。支持的编辑器有IntelliJ IDEA,Eclipse,PyCharm,Android Studio,PhpStorm,WebStorm、Clion,sublime、Visual

Formatting Resharper backing fields for properties in C#

北战南征 提交于 2019-12-05 01:33:19
So this is a follow-up to Keith Nicholas' question from 2 years ago: Formatting Resharper backing fields for properties in C# My guess is this would probably involve a custom Type Members Layout. Is there a way to to this yet in the latest Resharper version (as of now, it's 5.1) yet? Version 9.1 has a new option: Resharper > Options > Code Editing > Place backing field above property https://youtrack.jetbrains.com/issue/RSRP-411980#comment=27-961304 In Resharper 6.1 I have this kind of a template, that may solve the question, or at least help others. Using the 'shortuct' + TAB combination, I

can WindowsIdentity.GetCurrent() return null?

女生的网名这么多〃 提交于 2019-12-05 00:28:48
ReSharper warns me about a possible NullReferenceException in WindowsIdentity windowsIdentity = new WindowsIdentity(WindowsIdentity.GetCurrent().Token); I looked in MSDN doc but didn't see any mention of this. Also, it doesn't make sense since if you run an executable, you have to be logged on. Is this just a ReSharper search pattern? nitzanms Using ILSpy, you can look at a de-compiled version of GetCurrent and GetCurrentInternal , which GetCurrent calls. The result is: GetCurrent: public static WindowsIdentity GetCurrent() { return WindowsIdentity.GetCurrentInternal(TokenAccessLevels

Resharper gotchas [closed]

扶醉桌前 提交于 2019-12-05 00:14:36
i absolutely adore ReSharper and would not work without it, but there are a few gotchas that i have run into and learned to avoid: Allowing ReSharper to rename string literals automatically can really bite you in such instances as when your object variables match column names in your DAL SQL or other string constants. i have learned that instead of impatiently hitting the enter key when the second rename dialog appears i really need to see what ReSharper is suggesting and often skip the string literals rename step. This one is a little more insidious: When you have Solution-Wide analysis