如何禁用 ReSharper 属性代码自动完成/代码片段 [英] How to disable ReSharper property code autocomplete/code snippet

查看:45
本文介绍了如何禁用 ReSharper 属性代码自动完成/代码片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 中,如果您键入prop"然后双击tab"键,它会添加一个属性代码片段.

In Visual Studio if you type 'prop' and then double tap the 'tab' key it adds a property code snippet.

我过去一直在 Visual Studio 中使用默认的,但自从安装 ReSharper 后,它被 ReSharper 片段覆盖,这让我发疯,因为它以一种奇怪的方式工作,对我不起作用.

I used to use the default one in Visual Studio all the time but since installing ReSharper it's overridden it with a ReSharper snippet that drives me insane because it works in a weird way that just doesn't work for me.

我想切换回 VS 默认设置,但不知道如何禁用它并切换回来.有谁知道怎么做?

I want to switch back to the VS default one but can't work out how to disable it and switch back. Does anyone know how?

推荐答案

Resharper 使用实时模板",如果它们使用相同的快捷方式,它会覆盖 VS 代码段.

Resharper uses 'Live Templates' which override VS snippets if they use the same shortcut.

使用 Resharper 2017.1,要禁用特定的实时模板,请转到菜单 ReSharper > 工具 > 模板资源管理器...

Using Resharper 2017.1, to disable a specific live template, go to the menu ReSharper > Tools > Template Explorer...

然后在 C# 范围内,找到并取消勾选prop".

Then in the C# scope, find and untick 'prop'.

您可能需要重新启动 Visual Studio 才能使更改生效.

You may need to restart Visual Studio for the change to take effect.

这篇关于如何禁用 ReSharper 属性代码自动完成/代码片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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