如何重置“不再显示此对话框". Studio和ReSharper的设置 [英] How to reset the "Don't show this dialog again" settings for Visual Studio and ReSharper

查看:236
本文介绍了如何重置“不再显示此对话框". Studio和ReSharper的设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio项目(C#)中,我尝试使用 ReSharper 快捷方式( Ctrl + R + R ).但是,由于我已经从源代码管理系统的另一个位置分支了一些使用名称空间的文件,因此它们具有只读属性.因此,我收到一个对话框,其中包含对不起,显然我无法发布图片,因为我是新用户":

In a Visual Studio project (C#), I attempted to perform a rename of a namespace using the ReSharper shortcut (Ctrl + R + R). However, because I had branched some of the files that used the namespace from another location in the source control system, they had the readonly attribute set on them. Consequently, I received a dialog which contained "Sorry, apparently I can't post an image because I'm a new user":

您尝试编辑的文件TestFile.cs在磁盘上是只读的.您是要使文件可写还是要对其进行编辑?

The file TestFile.cs which you attempted to edit, is readonly on disk. Would you like to make the file writeable or edit it anyway?

复选框:不再显示此对话框(禁止在内存中进行编辑)

Checkbox: Don't show this dialog again (Never allow in memory edits)

按钮:编辑内存,可写,取消,帮助

Buttons: Edit In-Memory, Make Writeable, Cancel, Help

我勾选了不再显示此对话框".复选框,然后单击使可写".

I ticked the "don't show this dialog again" checkbox and clicked Make Writeable.

对我来说,这表明将来您尝试编辑的所有只读文件都将自动变为可写状态.相反,实际上发生的是,以后所有编辑只读文件的尝试都会自动取消(不显示对话框)!

To me, that suggests that in the future, all readonly files which you attempt to edit would automatically be made writeable. Instead, what has actually happened is that all future attempts to edit a readonly file are automatically cancelled (without the dialog box being shown)!

因此,我需要重设控制是否显示此对话框的设置.我不确定是Visual Studio设置还是ReSharper设置,但是我尝试重置Visual Studio选项(从菜单工具-> gt> 导入和导出设置菜单项)无济于事.我找不到任何方法来重置ReSharper设置.

Therefore, I need to reset the settings which control whether this dialog is displayed. I'm not sure if it's a Visual Studio setting, or a ReSharper setting, but I have tried resetting the Visual Studio Options (from menu Tools -> Import and Export Settings menu item) to no avail. I can't find any way to reset the ReSharper settings.

软件版本:

  • Visual Studio 2008 Service Pack 1
  • ReSharper 4.5

推荐答案

我能够重现此内容. Resharper 4.5插件似乎是错误. VS 2008的/Tools/Options/Documents中有一个复选框,用于允许编辑只读文件;尝试保存时发出警告.在执行您概述的步骤之后,这没有任何效果.

I was able to reproduce this. This appears to be an error with the Resharper 4.5 plug-in. VS 2008's /Tools/Options/Documents has a checkbox for Allow editing of read-only files; warn when attempt to save. This had no effect, after I took this steps you outlined.

我最初注意到的是,单击您提到的这些按钮后,我无法编辑只读文件.在我进入Resharper Options/General并选中发生异常时始终显示错误对话框之后,我能够通过重构/重命名间接编辑只读.

What I noticed at first is that I was not able to edit a read-only file after clicking these buttons you mentioned. I was able to indirectly edit a read-only, through refactor/rename, after I went to Resharper Options/General and checked Always show error dialog when exception occurs.

我已经向Jet Brains报告这是一个错误.

I have reported this as a bug to Jet Brains.

这篇关于如何重置“不再显示此对话框". Studio和ReSharper的设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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