R# and StyleCop - resharper

I recently installed R# 6, in my previous version of R# I could disable StyleCop when editing old files by selecting options and disabling the StyleCop plugin. I can't find the option for this in R# 6, it's really annoying when opening an old file that had loads of violations (it really distracts me from the code).
Does anyone know where the option to disable plugin in R# 6 is?
Thanks,
Gareth.
EDIT:
Just to confirm, my previous version was 4.5, and to turn off StyleCop it was Resharper -> Plugins -> Then uncheck StyleCop...

The Dialog with the Plugins has moved to the Resharper Options.
Resharper -> Options -> [Environment - Plugins]

Related

Having both Visual Assist X 10.6 and Resharper How to make VAX turn off on C# projects?

Having VAX and RS installed how to make VAX turn off on C# projects (because Resharper and default VS2012 hightlightning are more acceptable for me)?
Try this:
http://docs.wholetomato.com/default.asp?W372
Add .cs to the "Extensions to Ignore" under Projects and Files.
You cannot choose to disable language-specific but disable global. In the VS main window go to
VAssistX -> Enable / Disable Visual Assist X

resharper disable for c# .cs files

is it possible to only enable resharper for javascript and css files? I don't want it inspecting my c# files as it's driving me nuts with it's styling and and at times somewhat controversial recommendations. I haven't got time to set each individual setting, I'm just looking for a "don't inspect c# files" check box, if there isn't one I think my resharper trial will be officially over.
If you really want to disable ReSharper for C#, try going to ReSharper | Options -> Code Inspection | Settings -> Edit Items to Skip and add a file mask to skip *.cs.
But better way would be to disable those ReSharper warnings that you don't like. To do this, click Alt-Enter on the suggestion that you don't like, go to Options submenu, select Configure inspection severity and then Do not show. This is for ReSharper 8.0, in 7.1 it should be pretty similar.

Fix Resharper intellisense

Does anyone know how to fix this, besides pressing esc then typing the variable name again?
JetBrains ReSharper 6.1 C# Edition
Build 6.1.37.86 on 2011-12-21T04:15:24
Plugins: none
Visual Studio 10.0.30319.1.
You may want to try changing the IntelliSense option:
Whether you're using IntelliSense ReSharper or Visual Studio, try changing it, then changing it back. I've sometimes had similar issues and toggling the option can help.
Usually restart of Visual Studio tends to re-enable intellisense, I'd much rather a proper fix from JetBrains.
For me, R# intellisense stopped working after installing (and then uninstalling) certain R# extensions. Adding the extensions back fixed the problem.
Edit 1:
Also, try playing with the R# IntelliSense options and see what happens.
In particular switch "Options | Environment | IntelliSense | Completion Appearance | Display completion items in:" from "Visual Studio IntelliSense font" to "Text Editor font" and back.
In the end I tried many things (including upgrading and downgrading R#) over and over again until R# IntelliSense was back.
I had this issue, and I hadn't realized I had opened a project in Folder view mode. Resharper Intellisense won't show unless you switch to a solution view.
Make sure you select a solution instead of a Folder view:

Disable Automatic File Header Creation (ReSharper and StyleCop)

I recently installed R# 6.1 (C# version, not Full) with StyleCop 4.7.34.0 (with the R# plugin). When adding a new class to a project, the file header information is automatically added. How do you disable this?
I've turned off the checkbox for "Insert text into documentation and file headers" within the R# options for StyleCop (Options > Tools > StyleCop > Headers section).... but still no luck.
I've also turned off StyleCop rules SA1633 to SA1640 that requires the header documentation.
I found this related post that suggests:
ReSharper -> Options -> Tools section -> Code Cleanup -> select StyleCop profile -> Documentation section -> untick 1600
but I don't have a "Code Cleanup" node in my tools section. Not sure if the fact that I'm using a "C#" version of R# has something to do with it.
The problem is actually because of this:
http://stylecop.codeplex.com/discussions/348351/
When you try to uncheck the StyleCop settings under Code Cleanup (Options > Code Editing > Code Cleanup > StyleCop > 1600 and 1633-1641) and click Save it does not actually save the changes! This seems to be a bug in ReSharper.
The only workaround i've found is to make a new profile (Add) and immediately uncheck 1600 then click Save. This will have to be set as the Profile to use on silent cleanup. Good luck
EDIT: here are the settings for my profile that is set as the 'silent cleanup' one. It does not add the headers. hope that helps
I had this problem and found that the issue was not ReSharpers global StyleCop settings (arserbin3s answer); but the project specific ones.
Right click on your existing project and select "StyleCop Settings".
First step
From there deselect "Documentation Rules" (or the specific rules you desire).
Second step
Finally, I had to close and open Visual Studio. This prevented Resharper refactors from writing the headers and documentation.
You may have different context menu options to me.
Either way, the key is that StyleCop can be project specific.
stylecop.codeplex.com/wikipage?title=Managing%20StyleCop%20Project%20Settings

Ctrl-W stopped working

I have Resharper installed and somehow CtrlW no longer "extends the selection". I tried assigning it to Global / Resharper.ExtendSelection in Tools -> Options -> Keyboard but it still only selects one word.
I have found the resolutions. Go to ReSharper -> Options -> Visual Studio Integration -> Keybord Shortcuts --> ReSharper or IntelliJ IDEA.Next time when you press CtrlW, Visual studio will ask you about shortcuts. You will choice ReSharper shortcuts and that is it.
A solution i found was to reconfigure keys at the Text Editor level (they are defined at Global level and for some (annoying) reason Resharper overrides this.
So: (Tools->Options->Environment->Keyboard), set Use new shortcut to Text Editor and redefine your shortcuts.
Tip: Look for your CtrlW favorites by writing view. at Show commands containing.
I needed View.ErrorList (CtrlW, CtrlE), View.Output (CtrlW, CtrlO) & View.SolutionExplorer (CtrlW, CtrlS)
HTH
p.s.
I even disabled Resharper and it still won't work...
A question and a suggestion:
Does Resharper | Edit | Extend Selection work?
Reapply VS integration via Resharper | Options | Visual Studio Integration | Apply Scheme
For me the reason was a silly one:
My C# file was removed from the project accidentally, so resharper no longer regarded it as C# code and so there were no syntactical elements to extend the selection to. In other files it worked ok.
In my case (Visual 2019)
go to Tools\Options\Environment\Keyboard
set Apply the following additional keyboard mapping scheme to Resharper (Visual Studio)
I had the silliest reason.
after the resharper installation I didn't apply my license or started the evaluation.

Resources