Make space between new generated style and controller method
Closed this issue · 3 comments
hansemannn commented
Hey @yomybaby,
would be nice to generate new TSS styles with a space (new line) between the brackets:
Before:
"#myStyle": {
}
After:
"#myStyle": {
}
It's a really really minor change, so maybe you can check it in between other stuff you work on. Thanks man!
EDIT: Same for controller methods:
Before:
function doStuff(e) {
}
After:
function doStuff(e) {
}
yomybaby commented
You can change generation template on package settings already. 😄
Check this out previous releases note:
https://github.com/yomybaby/atom-titanium/releases/tag/v0.11.2
hansemannn commented
Sweet! What prevents you from making it default then? :)
yomybaby commented
There is two changes in your suggestion
- Adding one space before colon : I'll make it default. Thanks :)
- Adding one more new line between { and } : I considered this when I made a generating feature. But I didn't add. It though that pressing "cmd + enter" is better when you need new line. Because "cmd+enter" make a new line after current line and add auto-indent space even your cursor in the middle of line. (I ❤️ "cmd+enter" )
I know the best is :
// _ is cursor position
function doStuff(e) {
_
}
But I couldn't found a best way to add indent correctly(2 space or 4 space or tab) and to move cursor.