ahuth / brackets-paste-and-indent

Paste code at the correct indentation level
29 stars 7 forks source link

Pasting Jade code breaks the indentation #8

Open tonipetre opened 9 years ago

tonipetre commented 9 years ago

When copy/paste Jade code, the plugin doesn't know how to handle it and the result is a code without indentation. Jade without indentation is broken code, and to re-indent each pice of code is a pain in the ass.

A quick solution would be to teach the plugin skipping/disable the copy/paste auto-indent within *.jade files.

tonipetre commented 9 years ago

Well, I did a bit of research and you can resolve this issue by adding a '.brackets.json' JSON file at the root of your project and adding a "language" layer:

"language": {
    "jade": {
        "brackets-paste-and-indent.enabled": false
    }
}
Lomacar commented 8 years ago

This did not work for me.

vaibhavdesai137 commented 8 years ago

Did not work for me either. Is there a fix for this?

JulienJo commented 7 years ago

If someone still need it, you have to write: { "language": { "jade": { "brackets-paste-and-indent.enabled": false } } }

At least it works with slim, so it should work with jade.