Code Formatting when shifting lines of code

Hello all

I am using PHPStorm IDE Version 1.0 for Windows. While using the CSS Editor, I tried to shift some lines of code using Ctrl + Shift + Up/Down. That shifted the lines of code alright.
But, the side-effect was that it indented the other lines with the same indentation as the first line of the code being shifted.

I have attached the image of the slight mischief being caused. Can somebody tell me how can I turn off this auto-format setting?

Regards



Attachment(s):
error.PNG
1 comment

If you move attribute lines into a selector the will again formatter properly, but during the move while hopping in between the selectors all top level editor rules will be applied - including selector-level formatting and error highlighting. Just finish move into your target rule.

0

Please sign in to leave a comment.