Visual Studio 2017 makes crazy indentation in CSS and Json

Yesterday (Monday, 2017-05-15). I experienced that my VS17 started creating crazy indentation when I hit return for a new line inside a code block.

Example (json):

"Header": {
    "Title": "Hello world!",
    "Desc": "A test"
},

"List1": {
    "Item1": "Value1",
    "Item2": "value2"
}

Now, if I write "Item1": "value1", and then press enter, I expect the previous indentations to happen (just like last week, before I went on vacation). This week, however, it looks after recording and pressing enter:

"List1": {
                    "Item1": "value1",
                    | <- represents text selector
}

Now I checked all my indentation settings, and they are as before. I tried changing them back and forth for different settings, and nothing changed this behavior.

"ctrl + k + d", , . , , , - ( ).

, , .

, , , , - .

CSS .

!

return, , "ctrl + z", ,

+4

Source: https://habr.com/ru/post/1677228/


All Articles