popcode icon indicating copy to clipboard operation
popcode copied to clipboard

Auto-indentation of closing bracket in CSS is bad if you type within open/close bracket

Open outoftime opened this issue 9 years ago • 1 comments

Say you have CSS that is:

image {
    width: 500px;}

If you press the return key after the semi-colon the right curly brace does not tab appropriately.

outoftime avatar Nov 11 '16 01:11 outoftime

I'm assuming this is the problem.

Say you have CSS that is:

image {
    width: 500px;}

If you press the return key after the semi-colon the right curly brace does not tab appropriately.

Also tested in JS and see the same issue:

function foo() {
    console.log("bar");}

I think it's a side effect of not auto-closing once an opening bracket is typed.

jwang1919 avatar Feb 13 '17 01:02 jwang1919