Bug #7642
closed
- Status changed from Open to Assigned
Thank you Keiju-san.
How do you enable auto-indent?
zzak (Zachary Scott) wrote:
Thank you Keiju-san.
How do you enable auto-indent?
For example, .irbrc:
IRB.conf[:PROMPT][:AUTO_INDENT] = {
:PROMPT_I => "%N(%m):%03n:%i> ",
:PROMPT_N => "%N(%m):%03n:%i> ",
:PROMPT_S => "%N(%m):%03n:%i%l ",
:PROMPT_C => "%N(%m):%03n:%i* ",
:RETURN => "=> %s\n",
:AUTO_INDENT => true
}
and, you do:
% irb --prompt auto-indent
Keiju-san, thank you for the explanation.
I also found this method:
irb_context.auto_indent_mode = true
What do you think about enable this by default?
I can open a feature request.
- Status changed from Assigned to Rejected
zzak (Zachary Scott) wrote:
I also found this method:
irb_context.auto_indent_mode = true
Yes. other way:
IRB.conf[:AUTO_INDENT] = true
What do you think about enable this by default?
Shell(bash, zsh) is also not default.
I do not think this feature is easy to use.
So, people who want to use this feature may be set it.
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like0Like0