Chromatism icon indicating copy to clipboard operation
Chromatism copied to clipboard

Auto indentation doesn't work

Open zyavrik opened this issue 12 years ago • 14 comments

Steps to reproduce:

  1. Type: function main { __line1;
  2. Press Enter.

Auto indentation won't work.

zyavrik avatar Oct 02 '13 14:10 zyavrik

If you end an line with a open curly bracket the next line should be automatically intended. You don't have a whitespace after it? skarmavbild 2013-10-04 kl 09 00 27

Anviking avatar Oct 04 '13 07:10 Anviking

Yes, I don't.

zyavrik avatar Oct 04 '13 07:10 zyavrik

I can't seem to replicate this either, unless as @Anviking says you have whitespace after the end of the curly brace.

ac3xx avatar Nov 10 '13 16:11 ac3xx

@altaveron Are all your files up-to-date?

ndrewh avatar Nov 10 '13 17:11 ndrewh

I am still having this issue...does this feature work with Swift?

mbcoder17 avatar May 30 '15 21:05 mbcoder17

@mbcoder17 Hmm, actually I think auto-indentation might have been lost with the swift rewrite in v0.3

Anviking avatar May 31 '15 17:05 Anviking

Can it be brought back? :)

mbcoder17 avatar Jun 03 '15 04:06 mbcoder17

Yeah, I think was something really really simple. With school (basically) finished and an upcoming WWDC I'll probably start looking at things again soon.

Anviking avatar Jun 03 '15 05:06 Anviking

Great, thanks! I'll see if I can figure it out myself too. Maybe I'll see you at WWDC! ;)

mbcoder17 avatar Jun 03 '15 05:06 mbcoder17

Have you had time to implement this in the swift version? Great library!

mbcoder17 avatar Nov 17 '15 19:11 mbcoder17

The current version is in Swift

cyrilbarthelet avatar Nov 17 '15 19:11 cyrilbarthelet

@cyrilbarthelet Thank you, I know that. Please read the entire discussion next time before responding. I was asking if the auto-indentation was implemented in the swift version.

mbcoder17 avatar Nov 17 '15 19:11 mbcoder17

@mbcoder17 Have stopped working on Chromatism, might rewrite it some time in the distant future. If you like, I think this was the latest implementation of it :)

Anviking avatar Nov 17 '15 22:11 Anviking

@Anviking I am sad to hear that, I think it is a great project and it has helped me a lot with one of my own projects! :) I was recently looking through previous versions and was able to get the indentation working. I have also made other additions such as line numbers, maybe I will fork my own version if you don't mind! Good luck on other projects!

mbcoder17 avatar Nov 17 '15 22:11 mbcoder17