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.

Make class extends and implements prettier by fitting to line width

See original GitHub issue

https://github.com/thorbenvh8/prettier-java/blob/master/PREVIEW.md#extends_abstract_class_and_implements_interfaces

public class ExtendsAbstractClassAndImplementsInterfaces extends AbstractClass implements Interface1, Interface2 { It’s just a line right now, when doesn’t fit line, it should look like this? (open for discussion @azz)

public class ExtendsAbstractClassAndImplementsInterfaces indent extends AbstractClass indent implements Interface1, same pos as Inter1 Interface2 {` (formatting code in an issue is hard?!)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
thorbenvh8commented, Jan 8, 2018

From my experience its pretty common to have a class that extends and has at least 2 interfaces to implement. Actually that what you should love about java 😃 I will work on this one on the next weekend and show you the output. Maybe I can convince you 😃 Thanks for your feedback, I really appreciate this fast feedback!

0reactions
thorbenvh8commented, Jan 9, 2018

Side question why does the ci pipeline in travis takes 52 mins?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rationale - Prettier
Prettier collapses multiple blank lines into a single blank line. Empty lines at the start and end of blocks (and whole files) are...
Read more >
Cause line to wrap to new line after 100 characters
Your line isn't breaking naturally because you don;t have any spaces in it. You can use word-wrap to force the breaks, then add...
Read more >
The Best Way to Implement a "Wrapper" in CSS
Setting the width of a block-level element will prevent it from stretching out to the edges of its container (good for things like...
Read more >
fit-content - CSS: Cascading Style Sheets - MDN Web Docs
The fit-content behaves as fit-content(stretch) . In practice this means that the box will use the available space, but never more than max- ......
Read more >
Supercharge Your Classes With Python super()
The primary use case of this is to extend the functionality of the inherited method. In the example below, you will create a...
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