Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indent #4

Open
jevanlingen opened this issue May 16, 2012 · 10 comments · Fixed by Nodeclipse/coffeescript-eclipse#23
Open

Indent #4

jevanlingen opened this issue May 16, 2012 · 10 comments · Fixed by Nodeclipse/coffeescript-eclipse#23
Assignees

Comments

@jevanlingen
Copy link

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.

@ghost ghost assigned adamschmideg May 16, 2012
@adamschmideg
Copy link
Owner

I'm going to make it configurable in preferences

@jevanlingen
Copy link
Author

Nice!

@mzedeler
Copy link

+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.

@wwoods
Copy link

wwoods commented Nov 13, 2012

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

@mzedeler
Copy link

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...

@wwoods
Copy link

wwoods commented Nov 13, 2012

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.

@rjpower
Copy link

rjpower commented Dec 17, 2012

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.

@wwoods
Copy link

wwoods commented Dec 18, 2012

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!

@paulvi
Copy link

paulvi commented Mar 11, 2014

see Nodeclipse#23

@mzedeler
Copy link

👍

Great work. I've really missed this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants