coffeescript-eclipse icon indicating copy to clipboard operation
coffeescript-eclipse copied to clipboard

Indent

Open jevanlingen opened this issue 13 years ago • 10 comments

In CoffeeScript, every indent is 2 spaces. Could you make the indentation differ from the rest of eclipse, as I use to write Java with a tab as indent.

jevanlingen avatar May 16 '12 08:05 jevanlingen

I'm going to make it configurable in preferences

adamschmideg avatar May 16 '12 09:05 adamschmideg

Nice!

jevanlingen avatar May 16 '12 10:05 jevanlingen

+1 from me. By the way: I haven't found a way to make the editor stop inserting tabs in stead of spaces. The global configuration says so, but autoindents are still with tabs.

Fixing this would be really great!

Note: the autoindent is inconsistent: it uses a tab when indenting just in the beginning of a function body and spaces everywhere else.

mzedeler avatar Jun 19 '12 08:06 mzedeler

Yeah this is really frustrating, still seeing this behavior...

wwoods avatar Nov 13 '12 18:11 wwoods

I can volunteer to try fixing this problem if only someone can point me in the direction of where to fix it. All the Java stuff somewhat put me off...

mzedeler avatar Nov 13 '12 20:11 mzedeler

I'm working on it too; except the make.py is not making as it says on the label. I opened a separate issue about that.

wwoods avatar Nov 13 '12 21:11 wwoods

Hey, for what it's worth, I decided to try writing my own editor for Coffescript in Eclipse. It's a bit dumber then Adam's, but it (seems to) handle the tab indentation and what not better, at the cost of less diagnostics/etc.

https://github.com/rjpower/iced-coffeescript-eclipse

I tried looking at Adam's but I couldn't decipher the tab behavior, so I just went with a trivial grammar for now.

rjpower avatar Dec 17 '12 17:12 rjpower

Hey, thanks - I'll look into that. Also, never knew about (Iced)Coffee-Script - very neat! I started rewriting coffeescript due to some really obnoxious and unclear parser behaviors, and was looking to add async support as well (why not at that point). I might just have to borrow that approach.. it's really clean!

wwoods avatar Dec 18 '12 00:12 wwoods

see Nodeclipse/coffeescript-eclipse#23

paulvi avatar Mar 11 '14 06:03 paulvi

:+1:

Great work. I've really missed this fix.

mzedeler avatar Mar 11 '14 07:03 mzedeler