Visual Studio最近的“饥饿"状态或“贪婪"退格行为更新? [英] Visual Studio recent "hungry" or "greedy" backspace behavior update?

查看:156
本文介绍了Visual Studio最近的“饥饿"状态或“贪婪"退格行为更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,Visual Studio 2017(以及我刚刚开始使用的2019)似乎已经改变了退格按钮的行为,特别是,光标位于仅空白(让我们使用制表符)到光标的左侧.我曾经按退格键并删除过一个标签.现在,所有空白都被删除,我的代码行被放置在上面的行的末尾.

As of recent, Visual Studio 2017 (and 2019 which I just started using) seems to have changed the behavior of the backspace button, specifically, the cursor is at a place where only white space (lets say tabs) is to the left of the cursor. I used to press backspace and delete one tab. Now, all the white space is removed and my line of code is placed on the end of the line above.

似乎对大多数人来说是一个好主意,但是对我来说,结果是我习惯了将退格键混为一谈,最后在上一行代码中退格了.

Seems like a good idea and probably is to most people, but the result for me is that I mash the backspace key out of habit and end up backspacing over code from the previous line.

我想缓解这种奇怪的行为. Visual Studio是否有一个设置可以打开和关闭此行为?

I'd like to ease into this newfangled behavior. Does Visual Studio have a setting to toggle this behavior on and off?

推荐答案

好吧,根据此reddit帖子(您昨天在哪里?),它是ReSharper:

Well, according to this reddit post (where were you yesterday?), it's ReSharper:

https://www.reddit.com/r/VisualStudio/评论/by5upb/how_to_disable_greedy_backspace_behavior_in/

关键位:

看起来一直都是ReSharper!选项->编辑器->编辑器行为->在Backspace上不缩进.从到适当的缩进位置"更改为已禁用"

Looks like it was ReSharper all along! Options -> Editor -> Editor Behavior -> Unindent on Backspace. Change from "To proper indent position" to "Disabled"

当然,这就是问题所在.好东西,我就是不能辞职的,ReSharper.我想对于那些喜欢贪婪删除之类的人来说,这将是另一个卖点.

And sure enough, that was the issue. Good thing I just can't quit you, ReSharper. I suppose this would be yet another selling point, for those that like the greedy-delete or whatever this is called.

这篇关于Visual Studio最近的“饥饿"状态或“贪婪"退格行为更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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