SQL Server Management Studio 2012 has some strange behaviour.
For example I have the following query:
if year(getdate()) = 2013
select 'two thousand and thirteen';
if year(getdate()) = 2014
select 'two thousand and fourteen';
There is no symbol on the third line. Just new line.
I put the cursor at the end of the second line and push the Down arrow button.
Here the magic begins. Cursor moves not to the first column of the third line but to the fifth one.
If I push the End button cursor moves to it's real position: first column.
Can somebody explain why such strange behaviour happens and how to fix it?
P.S. Do not offer choosing Indenting-None option. Because I need indenting when editing my code. When I push the Enter button I need cursor to be indented on a new line. Problem is mainly with displaying the code and not with formatting it.