Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hitting Tab in Visual Studio selects block instead of adding indentation

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:

enter image description here

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

enter image description here

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):

enter image description here

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

like image 912
Alexander Pacha Avatar asked Sep 15 '16 15:09

Alexander Pacha


People also ask

Why tab button is not working in VS Code?

I had accidentally enabled a different mode for the tab key. Fixed it by pressing Cmd + Shift + M (for Mac), or Ctrl + M (for Windows).


1 Answers

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

enter image description here

Update for Resharper 2016.3.1.

Thanks to @Jordan for pointing this out!

Updated for Resharper 2016.3.1

like image 188
Karel Tamayo Avatar answered Sep 22 '22 17:09

Karel Tamayo