完全禁用ReSharper for Visual Studio中的格式化和完成 [英] Completely Disable Formatting and Completion in ReSharper for Visual Studio

查看:204
本文介绍了完全禁用ReSharper for Visual Studio中的格式化和完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢ReSharper提供的很多功能,但是我完全无法忍受它所做的格式化和代码完成。它让我走了每一步。在JavaScript中,它不断窃取大括号,试图重新格式化我的代码,使其无法正常工作,很难找到遗漏的地方。

我想禁用ReSharper的格式化和代码完成的所有事情,同时还能获得它所具有的很酷的导航功能。

有没有办法选择安装ReSharper?我试过在选项中禁用这个东西,但它似乎没有任何好处。

解决方案

转到ReSharper |选项。更改以下选项:



在页面Environment |编辑器:关闭从自动格式或自动插入开始的选项。这不会完全禁用ReSharper格式化功能,但至少在输入时不会自动调用。



在页面Intellisense |一般:更改为Visual Studio。或者,如果您只是不喜欢JavaScript中的代码完成,请更改为Limited ReSharper Intellisense并关闭JavaScript。

你能用实例来描述一下,当ReSharper是窃取括号时,你输入了什么内容。谢谢!


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.

解决方案

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!

这篇关于完全禁用ReSharper for Visual Studio中的格式化和完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆