Visual Studio中的“击中"选项卡选择块而不是添加缩进 [英] Hitting Tab in Visual Studio selects block instead of adding indentation

查看:106
本文介绍了Visual Studio中的“击中"选项卡选择块而不是添加缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Visual Studio 2015和ReSharper 2016.2,但我有这种奇怪的行为,可能是我(意外地)激活了它.将光标放在第一个单词之前的行中时,按Tab键可以使行正确缩进:

I am using Visual Studio 2015 and ReSharper 2016.2 and I have this strange behavior, that I probably activated (accidentally). When having the cursor in a line before the first word, hitting the Tab-key indents the line correctly:

当光标位于行内任何单词的内部时,按Tab键将选择单词或块.

When the cursor is inside of any word inside the line, hitting the Tab-key selects the word or block.

但是理想的行为是在光标处缩进(例如,如果光标位于字母r之后的Stream内,则将一个单词分成两个单词):

But the desired behavior would be to indent at the cursor (e.g. split a word into two words, if the cursor was inside of the word Stream after the letter r):

有人知道这个功能"的称呼吗?它来自ReSharper吗?在哪里可以启用或禁用它?

Does anyone know how this 'feature' is called? Does it come from ReSharper? Where can it be enabled or disabled?

推荐答案

转到Resharper->选项,在左侧树视图中选择编辑器行为",然后取消选中最后一个选项使用Tab/Shift Tab键进行结构导航.

Go to Resharper -> Options, in the left treeview select Editor Behavior and uncheck the last option Use Tab/Shift Tab keys for structural navigation.

Resharper 2016.3.1更新.

Update for Resharper 2016.3.1.

感谢@Jordan指出这一点!

这篇关于Visual Studio中的“击中"选项卡选择块而不是添加缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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