Author Topic: Auto Indent when press the Enter key  (Read 3634 times)

jianguhan

  • Guest
Auto Indent when press the Enter key
« on: January 11, 2010, 05:33:35 am »
The following Lua code:

if b then
    if b then
        end <-press the Enter key, the "end" is still here
end

press the spacebar is ok,
but I don't want to add a space after each "end".

I hope this can be:
if b then
    if b then
    end<-press the Enter key, the "end" is Auto Indented
end

 :)


Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Auto Indent when press the Enter key
« Reply #1 on: January 11, 2010, 12:03:18 pm »
Hi jianguhan,

Yes, this make sense.
I will try to extend behavior for Enter in new 1.48 beta.

Thanks for the suggestion!

Best regards,
Alex.