Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completely Disable Formatting and Completion in ReSharper for Visual Studio

I like a lot of the features that ReSharper offers, but I absolutely can't stand the formatting and code completion it does. It trips me up every step of the way. In javascript it's constantly stealing braces attempting to reformat my code making it not work, and hard to find where pieces are missing.

I would like to disable everything to do with ReSharper's formatting and code completion while still getting the benefits of the cool navigation stuff it has.

Is there anyway to do a selective install of ReSharper? I've tried disabling this stuff in the options but it doesn't seem to do any good.

like image 673
Chris Lees Avatar asked Mar 25 '13 15:03

Chris Lees


People also ask

How do I turn off formatting in Visual Studio?

The solution was to go to 'Tools > Options > Text Editor > Basic > VB Specific' and turn 'Pretty Listing' OFF.

How do I set rules in ReSharper?

Find the name of formatting rule that you want to tweak. You can look it up on the Code Editing | [Language] | Formatting Style page of ReSharper options ( Alt+R, O ) or alternatively, you can select a code block where the desired rule applies, press Alt+Enter , and choose Format selection | Configure.

How do I fix formatting in Visual Studio?

As long as your code is syntactically correct (i.e. no stray brackets or End Ifs without matching Ifs), Visual Studio will reformat your whole file with one key chord: Hold down the Control key and then press K, followed by D. Boom! Everything looks pretty again.


2 Answers

Go to ReSharper | Options. Change the following options:

On the page Environment | Editor: turn off options that starts from "Auto-format" or "Auto-insert". This won't disable ReSharper formatting features completely, but at least they won't be invoked automatically when typing.

On the page Intellisense | General: change to "Visual Studio". Or, if you only dislike code completion in JavaScript, change to "Limited ReSharper Intellisense" and turn off JavaScript.

P.S. Could you please describe with examples, what do you type when ReSharper is "stealing braces". Thanks!

like image 185
Dmitry Osinovskiy Avatar answered Oct 11 '22 20:10

Dmitry Osinovskiy


This will be heresy to some but I dislike Resharper's autocompletion and other intellisense items. I turned them off but doing so left my normal VisualStudio Intellisense and ParameterInfo totally inactive. Which I assume leads people to go back to Resharper because what's worse than bad is nothing.

If you need to turn off the Resharper part its pretty straight forward:

Resharper > Options > IntelliSense > Select Visual Studio radio button

Being I dislike this (possibly unintentional) coercion I decided to answer here how to recativate normal Visual Studio intellisense and parameter info this is how to get it back.

Tools > Options... > Text Editor > C# (for instance) > General > Auto list members

Tools > Options... > Text Editor > C# (for instance) > General > Tick on Parameter information

Tools > Options... > Text Editor > C# (for instance) > IntelliSense Tick on Show completion list after a character is typed

like image 11
Carter Avatar answered Oct 11 '22 19:10

Carter