question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting options

See original GitHub issue

Would it be possible to have an option for which formatting style you preferred from the style guide?

The current output is for the first one, guessing some of us would prefer the second.

https://rubystyle.guide/#no-double-indent

# good
def send_mail(source)
  Mailer.deliver(to: 'bob@example.com',
                 from: 'us@example.com',
                 subject: 'Important message',
                 body: source.text)
end

# good (normal indent)
def send_mail(source)
  Mailer.deliver(
    to: 'bob@example.com',
    from: 'us@example.com',
    subject: 'Important message',
    body: source.text
  )
end

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kddnewtoncommented, Aug 19, 2021

@dfockler as @UnderpantsGnome said, this should be the default behavior now.

1reaction
UnderpantsGnomecommented, Aug 19, 2021

@dfockler in the latest versions the second indentation is what’s produced as long as you have parens around the args, if you don’t have parens it will indent all the way to the first arg.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Which text formatting options are available? | Authoring Content
The ScreenSteps article web editor provides the following formatting options through the toolbar: Bold; Italic; Underline; Text and Text ...
Read more >
Add and format text - Microsoft Support
Select the text you want to format. To select a single word, double-click it. To select a line of text, click to the...
Read more >
4. Formatting Text, Paragraphs, and Headings - Word 2007
First, tell Word which text you want to format by selecting it. Then format away. Or, you can set up your formatting options...
Read more >
Text Formatting - Utah Valley University
Microsoft. Word and Google Docs have several text-formatting features you can use, including font, font size, bold, italics, underline, text color, and ...
Read more >
Formatting options - Drillster
The various formatting options · Entering formatted content · Escaping HTML code · Influence on open ended answers · Examples · Frequently Asked...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found