vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

indent configuration no longer work in 0.4.0 #271

Closed c-johnson closed 11 years ago

c-johnson commented 11 years ago

First -- Really nice work with Scripted in this last year guys! I am very impressed with how far you've taken it since last summer.

Second, I upgraded to scripted 0.4.0 recently and the indenting configuration no longer works when you set the indent_char and indent_size in .scripted files. Mac/Chrome latest

Keep up the good work!

aclement commented 11 years ago

I think the preferable way of setting those is via expandtab/tabsize in the editor block:

"editor": {
  "expandtab": true,
  "tabsize": 4
}

But I presume you are seeing them in the formatter block?

"formatter": {
  "js": {
    "indent_size": 4,
    "indent_char": "\t"
  }
}

is that right?

aclement commented 11 years ago

fixed up in dev. I believe this came about when the new config options where forced into the editor block for auto indent/unindent. The existence of the editor block (even though it had no spacing config entries) interfered with the mirroring of formatter/js settings to editor settings.